PCD Location of Content-iView

Hi SDN
I'd like to get either the full PCD location (like "pcd:portal_content/TEST/TEST_iViews/Footer") or only the last part ("Footer") of the location of the currently displayed iView in the Content Area.
I need this information in the PageToolBar.
With JavaScript I can retrieve the navurl and the title of it, but this is where my knowledge ends.
Any help and hint appreciated (& awarded)
Regards
Michael

I couldn't find anything about the Options->Details-Implementation...
But this is the JavaScript-Code that solves my problem. I use it in my custom page tool bar (or page title bar). From the Toolbar I call my web dynpro app with parameters, so this works fine for me.
JavaScript:
var obj = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue();
return obj.fullURL;
Not verified, but could also solve the problem:
How to do it in plain Java/JSP can be found here:
https://www.sdn.sap.com/irj/sdn/thread?messageID=307965#307965
https://www.sdn.sap.com/irj/sdn/thread?messageID=106301#106301
or with NavigationHelperService (not used very often) in Java :
https://www.sdn.sap.com/irj/sdn/thread?messageID=5213384#5213384
Tribute to Praveen! \*bow*

Similar Messages

  • Getting pcd location of iview dynamically

    Hi,
    I need the pcd loaction of a particular iview so that it can be provided as a reference to a link,since on clicking the link from a different iview that particular iview opens.Can you pls. let me know
    1.How to dynamically fetch the PCD location of an iview in a DynPage.
    2. I have created a seperate project for this purpose in NWDS.Do i need to modify the portalapps.xml

    Hi Ranjan,
         Blocks might be confussing for you but let me make it simple. Definately you can make use of IPcdContext Factory to get the PCD location for a particular iview. I am attaching a simple code which will you clear you how to implement and fetch the PCD.
         public List getPCDContents(IPortalComponentRequest request) throws Exception{
              try {
              Hashtable env = new Hashtable();
              env.put(IPcdContext.SECURITY_PRINCIPAL, request.getUser());
              env.put(
              Context.INITIAL_CONTEXT_FACTORY,
              IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
              env.put(Constants.REQUESTED_ASPECT, "com.sap.portal.pcd.gl.PersistencyAspect");
              InitialContext ctx = null;
              DirContext dirCtx;
              List iViewList = null;
              ctx = new InitialContext(env);
              dirCtx = (DirContext) ctx.lookup("pcd:portal_content/");
              PcdSearchControls pcdSearchControls = new PcdSearchControls();
              pcdSearchControls.setReturningObjFlag(false);
              pcdSearchControls.setSearchScope(
              PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
              dirCtx.addToEnvironment(
              Constants.APPLY_ASPECT_TO_CONTEXTS,
              Constants.APPLY_ASPECT_TO_CONTEXTS);
              NamingEnumeration ne =
              dirCtx.search(
              "(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.iview)",
              pcdSearchControls);
              iViewList = new ArrayList();
              int i = 0;
              while (ne.hasMoreElements()) {
              i++;
              IPcdSearchResult searchResult =
              (IPcdSearchResult) ne.nextElement();
              String location =
              "pcd:portal_content/" + searchResult.getName();
              iViewList.add(location);
              response.write("Object is "+location);
              return iViewList
              }catch(Exception e )
                 response.write("Exception Occured due to :" +e.toString());
    Good Luck!
    Nikhil

  • INode(PortalComponentURI) from pcd location

    Hi,
    I have pcd location of some iview(eg: pcd:portal_content/sample/sampleIview) and i need to get url  of this component. What is the easist way? Or how can i get INode?
    thanks
    JJ

    Hi Jiri,
         The following code will get you the url.
    IPortalComponentURI componentURI = request.createPortalComponentURI ();
    componentURI.setContextName("pcdlocation");
    String url = componentURI.toString();

  • Getting PCD folder name of iView

    Hi guys,
    I'm writing an application to print out the iViews and their properties in Folder A, which consists of sub-folders B and C. THus, the application is retrieving and printing the iViews in sub-folders B and C as well. However, apparently, the iViews are not retrieved in any sequence and it is hard to tell which folder the iView belongs to. Is there anyway to retrieve the folder where the iView resides?
    Thanks,
    Zhenmin

    Hello,
    The pcd path of the iview contains the folder id also.
    Or better, serach the iview and then right click and select "Locate in Portal Catalogue". That way u can get the complete folder structure where the iview is stored.
    Regards
    Deb

  • Reading PCD object PCD location

    Dear friends,
    I am listing PCD objects like iViews, pages, etc. in a listbox.
    I want to use PCD Location of individual objects in the listbox
    Can anybody help me, how to read or retrive the PCD Location data. I could able to read Title and Description.
    Plz reply me
    thanx in advance
    Lakshmikantha

    Hi,
    Looking Up Objects
    This section describes how to look up a PCD object by performing a JNDI lookup and supplying the PCD address of the object.
    Procedure
           1.      Create an instance of the helper object for the type of semantic object that you want to create, such as, IiViews for an iView, ISystems for a system, and so forth.
    IiViews iViewSrv = (IiViews)
        PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
           2.      Set the parameters for a JNDI lookup in the PCD.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
        IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
           3.      Perform the lookup by supplying the PCD address of the object, and then cast the returned object to the appropriate semantic object interface.
    InitialContext iCtx = null;
    try
        String iViewID = "pcd:portal_content/myFolder/stocks";
        iCtx = new InitialContext(env);
        IiView result =(IiView)iCtx.lookup(objectAddress);
    catch(Exception e)
    REFER the link for more informatiion
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm

  • Hashed PCD Locator

    Hi Experts,
    When I fill in the "Assign Portal Role to Single Role", I found that the pcd location of the target portal role is too long, longer than 255 characters.
    1. Does it accept hashed PCD location?
    2. How can I get get the hashed PCD Location?
    Regards,
    Tony

    Hi Gregor,
    Thanks for your link! I can get the hashed pcd at "Short URL" iView.
    One more question:
    After transport to another system, say dev to qa, will this hash short pcd url be still useful, or need to get it once again with the QA portal's Short URL iView?
    Regards,
    Tony

  • Can't locate email content? All of a sudden my email content has disappeared from inside MacMail? The actual emails are coming through but I am unable to view them as the area is just left blank! Nothing has been done to have changed this?

    Can't locate email content? All of a sudden my email content has disappeared from inside MacMail? The actual emails are coming through but I am unable to view them in the content area! Nothing has been done to have changed this?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Workflow issue with new WSP, "Unable to locate the content database"

    I deployed a wsp last night. The farm is 1 WFE, 1 APP, 1 SQL. The workflow can be started manually, but isn't being triggered by a timer job. Workflow timer services are started on WFE and APP.
    03/03/2015 18:25:19.62 OWSTIMER.EXE (0x1870)                              0x1F50 
    Job Monitoring Logging Service Job                                          
    1              Unexpected       Microsoft.SharePoint.SPException: Unable to locate the content database named 'IntranetContent'     at SharePoint.IT.JobMonitoring.Jobs.DashboardJob.Execute(Guid
    targetInstanceId)                a3f74c85-4a11-4654-9869-67e1d2e712d9
    Any suggestions on troubleshooting?
    Thanks,
    Scott

    Hi scogordo,
    What is the wsp? Is it a migrated workflow?
    Whether the wsp has the relationship with the problematic workflow.
    You said that the workflow isn't being triggered by a timer job, what is the time job? Or, you mean the workflow cannpt be triggered automatically when an item is added or changed or other.
    If the workflow cannot start automatically when an item is added or changed, you need to make sure you are not using the System Account.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I locate harddisk content like I do in explorer. Finder does not show the hardisk

    How do I locate harddisk content (Files/folders) like I do in windows explorer. Finder does not show the hardisk?? Please suggest.
    Thanks

    Open Finder preferences, select General icon in the toolbar, check the boxes for what to display on the Desktop. Click on the Sidebar icon where you can configure what's displayed on the sidebar.

  • Files downloaded from the KM have iView pcd location instead of filename

    Hello,
    I have created a Filesystem Repository manager and a KM Document that reference one of the excel file over there. The problem is that when a user opens the iView and saves the file the suggested name is not the filename but this one:
    pcd!3aportal_content!2fgpd_content!2fvalrep_content!2froles!2fZGPD_VALREP_US1!2f00000005!2f00000006!2fZGPD_VALREP_US1_00000007
    which is the entire iView location in the pcd...
    Any idea how can I change it to be the file name?

    The server can send a suggested filename though the HTTP "Content-Disposition" header  Apparently, the IView you are using doesn't do that (not sure whether this is part of KM or the portal).
    PS: sadly, one specific very popular browser doesn't support this properly for non-ASCII characters, so it's non-trivial to get this working properly with all browsers.

  • Javascript error in Content Admin- Portal Content- iview Navigation window

    Hi friends,
    We are in the process of portal migration and as a part of this, we installed NW04 SPS 14 using Rapid Installer and then upgraded it to SPS 18. The components we upgraded are:
    Java component
    Portal Platform
    Knowledge Management and Collaboration
    Adobe Document Services
    BI UDI
    BI MMR
    After upgradation, when we logged in to portal, we were not able to see/browse Portal pages/Roles/Iviews/Worksets (PCD Contents) under Content Administration->Portal Content.
    Again, whichever window is there for navigation of PCD, we are not able to see the contents of PCD.For e.g. System Administration -> System Configuration.
    Does anyone know how to solve this issue?
    Regards,
    Nilz

    Hi nilz,
       See this thread:
    Getting javascript error while logging in EP
    Javascript error when loading Portal Content
    Regards, Suresh KB

  • Content iView With out filter not displaying folder content

    Hi!
    I´m creating a ContentiView with out filter and pointing it to a document Folder, when the user access the iView this message appears:
    http://oneworld.neoris.net:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fDemaBanorte!2fDemoBanorteRol!2fHome!2fBanortePage!2fContentiViewWOFilter/documents/BanorteDocuments
    The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.
    And when I click on "Access the folder using the Navigation user interface." then I can see the folder structure and its contents really nice.
    is there a way to configure the iView that allways display the content this way with out the user clicking on the "Access the folder using the Navigation user interface." option. ?
    Thanx in advanced!
    Gerardo J

    Hi,
    I resolved the problem using a KM Navigation iView, this iView has the functionality I was looking for and this displays the folders and then the content of the folders if we click on the folder. with the edit etc etc functionality.
    kind Regards,
    Gerardo J

  • Retrieve the PCD of the webdynpro Iview

    Hi!
    I have created an application with just one View. How can I retrieve the PCD of the iview of this application in the wdDoInit()?
    I want to be able to retrieve: portal_content/roleA/worksetB/pageC/iviewD. Another example is portal_content/roleX/worksetB/pageC/iviewD
    I'm able to get this when I place a button on the page, and click on it. In the button's handler I'm getting the parameter "sap-wd-appwndid". But this parameter isn't available in the wdDoInit().
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-wd-appwndid");
    How can I get the same result in the wdDoInit();?
    Thanks!
    Tom

    Was your second iVIew in the same folder as the first iView? And if so, would you mind providing the parameters you used to make the navigation? I have a Web Dynpro iView that has a button that needs to navigate to a Transaction iView in the same Portal Content Directory folder, but am not sure how to do it.
    Any help would be appreciated.

  • Portal content/iview refresh in the screen

    Hi SDNs,
    I have created some transaction iviews, like a group of transactions, one is for Purchase related and one is travel related.
    Once i logged into portal, i create a purchase order using the transaction iview and then i am navigation trip transaction iview and completing my action.
    And again i am coming back to po creation transaction iview, it is showing the <b>Start SAP Easy Access</b> screen instead of <b>me21n</b> screen. again if i navigate to travel transactions like trip, it is also showing the Start SAP Easy Access Screen.
    Not only for transaciton iviews, this i am facing for UWL iview and some other iview.
    What i found here is, the content is not refreshing, everytime i need to logoff and login if i do any action in portal and to take affect of that action.
    Can you please guide me, what might be the problem here and some inputs to resolve this.
    Thanks &Regards,
    Sireesha.B

    Hi Murthy,
        Have you modified or customized any element like masthead, desktop, framework page or master rule collection ?
    Regards,
    Vidit

  • How to locate all content items where HTML link is missing?

    We went through a brief period where Dynamic Converter was not producing the HTML link on new check in of content items. Now we have that fixed, but we need to identify those files that lack the HTML link so we can fix that. How do we locate content items that lack the HTML link?

    Please find the URL which causes issue .
    I am not able to invoke the dispatch action in struts.
    /11/09 15:36:03 EFLBuilder: [instance=152748_BUILDERKIT_777946304, id=115210371784,4] ERROR: AbstractResourceRenderer.renderBody - Resource
    "/seminarDetails.mcs;jsessionid=0ad16e5530d73bf00b218e744ea3b74adf8413a2ef58.e34RahmKa3mRay0Lc3aKbhiLbxaKe6fznA5Pp7ftolbGmkTy?Menu=customer&'amp;actionCmd=seminarDetails
    Regards
    Prem

Maybe you are looking for