Retrieving the *page* name

Hello all,
I have the following scenario in the EP6 SP9:
"Role A" -> "Role B" -> "Page A"
"Role A" -> "Role C" -> "Page B"
where Page A run an iView and Page A and B are deltalinks of another page.
With a few code lines I can retrieve the roles the user used to call the "Page A" or "Page B", but I can't retrieve the name of the page (it is also a node why can't I retrive it?).
1) Is there a way to retrieve the page name?
2) Is there someway to retrieve another page properties?
I tried the code below, but it seems that it retrieves the information from the java class it is running and dont the page/iview.
Any help will be appreciated,
Thanks,
Alessandro Reichert.
IPortalComponentContext ctx = request.getComponentContext("pcd:portal_content/com.citrosuco.citrosuco/com.citrosuco.intranet/com.citrosuco.mes/com.citrosuco.OperatorCockpitFolder/com.citrosuco.OperatorCockpitiViews/com.citrosuco.CockpitOperatorURLiView");
IPortalComponentProfile profile = ctx.getProfile();
Enumeration e = profile.getProperties();
while (e.hasMoreElements())
     String str;
     str = e.nextElement().toString();
     response.write(str"<BR>"profile.getProperty(str)+"<BR><BR>");

Hi Alessandro,
Here is the exact code I use. It displays the name of each node and the type, starting from the current node and going all the way to the initial node in the selected
path:
NavigationEventsHelperService navHelperService = (NavigationEventsHelperService)PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
INavigationNode myNode = navHelperService.getCurrentNavNode(request);
boolean moreNodes = true;
while (moreNodes) {
     response.write(myNode.getTitle(request.getLocale()));
     try {
          response.write(myNode.getAttributeValue(IPcdAttribute.OBJECT_CLASS).toString());
     } catch (NoSuchAttributeException e) {
          e.printStackTrace();
     response.write ("<BR>");
     if (myNode.getTitle(request.getLocale()).equals("DanRole")) {
          moreNodes=false;
     else {
          myNode = navHelperService.getParentNode(myNode,request);
The only reason yours would stop before the top is:
The last node did not have a parent node. Did you check the parent?
There is a problem in the check that determines whether to stop iterating up the selected path.
Feel free to send me your code or to post it.
Daniel

Similar Messages

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines

    How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines or be a diffrent title but i can't figure out how to make any changes to the text.

    Hello,
    Text in Menu/Submenu canno tbe changed while using menu widget. However, if you use the Manual Menu option, then you can create your own Menu and add the hyperlinks according to your requirement.
    To create Manual Menu, please follow the steps below :
    1) In the Widget palette, go to "Menus" click and drag "Vertical/Hrizontal" into your artboard/workspace
    2) Click on the widget itself to a blue arrow appears to the right
    3) There is a drop down called "Menu Type" set it to "Manual" (as shown in screenshot) :
    4) Now You can create your own Menu and add your own text and hyperlink to  this Menu.
    Hope this helps.
    Regards,
    Sachin

  • Retrieving the file name in the adapter module in the sender file adapter

    hi,
    i need to retrieve the file name, in the adapter module. This module is placed in the sender file channel.
    After the file adapter has picked up the file from the file directory, the file is placed in the archived directory.Custom adapter mofule is place in the file shanel. i need to retrieve the file name of the file in the adapter module. Is it possible to retrieve the file name?
    Also is it possible to retrieve the archive directory path in module?
    Regards,
    Meenkashi

    Hi Meenakshi,
    I guess you are looking for this
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    Regards
    Suraj

  • How to retrieve the Field Name of a Table

    Hi guys,
    I'm trying to retrieve the field name of a table in java, but i don't know how to do it. Could somebody help me?Let say i have a table name Itemmaster, then
    i want to retrieve its field and display to dos prompt.
    Example :
    Item No.
    Description
    Quantity
    It is possible to retrieve the fields?
    What could be the possible command in java using packages Java.sql.*?
    Thanks in advanced...
    Best regards,
    Dharry

    The ResultSet class, which is how query results are returned in JDBC, has methods to get at the metadata for the table queried, including column names:
    ResultSet resultSet=statement.executeQuery("select * from table");
    resultSetMetadata=resultSet.getMetaData();
    resultSetMetadata.getColumnLabel(column+1);

  • Find the page name with page sid?

    Because my top_page is dislpaying the page id instead of the name of the page
    and the output of the id is something like this
    page_id = 2,11,6_23
    Had any idea on where to find the page name?
    Thank you very much for the help

    Hi thank you for the reply...i have seen the path it was only that page name ...actually i want to e more specified like i is at the "TestPage" in the 2 tab call "test 2" is it possible to get the tab name?

  • Retrieve the host name behind the radware url

    Hi,
    Is it possible to retrieve the host name behind the radware url in BI Publisher template?
    Thanks, R.

    Hi,
    Did you maintained the entry in below format
    12.123.23.23        srstfdf        srstfdf.shouse.com
      in hosts file. If it is already maintained in the above format. then check the error if it is DNS related maintain the entry in DNS.
    thanks,
    madhu

  • Break the page name into two lines..

    Hi,
    I am trying to break the page neme into lines.For example Knowledge Management is the name of a page in Detailed Navigation and I want it to be displayed linke Knowledge and Management in two lines.I was just adding the break statement within the page name but was not successful.Any Ideas ??
    Thanks.

    I think you'll need to write your own detailed navigation to do this. There are a set of tags to make this easier...
    Cheers

  • Getting the page name

    Hi,
    I have a JSP, which is redirected to a servlet. I want to know from which page the request to the servlet is coming from, but am not able to figure that out. If you could please guide me for the same.
    Thanks and Regards,
    Sapan..

    Hi,
    I found the way out.The page name is in the header of the request object. You can get the page name by giving request.getHeader("referer").
    Thanks and Regards,
    Sapan.

  • Read the page name

    Hi all,
    I am new 2 JSP
    I need to how to read the page name on the URL
    i.e http://localhost:8080/default.jsp
    and advice me on wich book to buy for writing JSP pages that access Microsift SQL Server Database.
    Regards

    What do you mean by read the page name? If you use request.getPathTranslated() it will return the path as seen by the browser. Is that what you're asking for?

  • "hilight" the page name breadcrumb

    I want to "hilight" the page name that I am on in the breadcrumbs section. Does anyone know how I can accomplish this with this code below? And do you have an example?
    <pt:ptdata.currcommunitypagesdata pt:id="communities" /> <pt:logic.foreach pt:data="communities" pt:var="com"> <pt:core.html pt:tag="a" href="$com.url" ><pt:logic.value pt:value="$com.title" /> </pt:core.html> <pt:logic.separator><span style="font-size:5pt; vertical-align:middle; ">|</span></pt:logic.separator> </pt:logic.foreach>
    thanks,
    Greg

    thanks Robert, I wish that the <pt:logic.value pt:value="$com.title" /> would render an ID tag then I would be able to match it with something and then do my css effect.
    Not sure on how to implement your <pt:mytag.ifcurrpage pt:url="com"><b></pt:mytag.ifcurrpage> tag. Do I NEED to do the TagDisplay method in order to have the ifcurrpage tag available or are you saying its already available? I tried the html you sent and it gives me no results.
    I'd like to just run some vbscript or javascript and set the <pt:pagename xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" /> to a variable and check against the <pt:logic.value pt:value="$com.title" /> but not sure how to go about it if the <pt:logic.value pt:value="$com.title" /> doesnt have an ID tag.
    thanks,
    Greg
    ------- Robert Zhang wrote on 11/9/05 1:55 PM -------Current page URLs have a "currpage" URL component set. Unfortunately, G6 does not ship with a branching Tag that checks for this URL component, but you can easily create an ifcurrpage Tag yourself.Here's an example of how to use one:="$com.url"]<SPAN &#034;ertical-align:middle;>|Example code of the TagDisplay method:String strAttribName = GetTagAttributeAsString(URLTAG);IPTURL ptURL = (IPTURL)GetStateSharedVariable(strAttribName, Scope.TAG);if ( ptURL.GetData(PTURLConstants.KEY_CURRENTMARKER) != null ){ return ProcessTagBody();}where URLTAG is defined aspublic static final RequiredTagAttribute("url", "desc", AttributeType.String);

  • Where is the page name stored

    We have a desktop definition in production, but wants to change the name on a couple of Pages while being in production. I've tried to snoop around in the Portal database tables to find the name of the pages, but could only find the Page Label (stored in PF_PAGE_DEFINITION), but not the actual name.
    The portal admin wouldn't allow me to change the page name when the page already is created from a .portal file. Since we're in production, we really don't want to recreate the desktop definition.
    Anyone got a suggestion?
    Trond Andersen, Invenia AS, +4798290811

    All titles are internationalized
    L10N_RESOURCE
    you can find the correct record by tracing through the INTERSECTION_ID

  • Is possible to get the page name from the _pageid

    Is possible to get the page name from the _pageid displayed in the url?
    It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
    Thanks in advance.

    You have you execute this query, using both the numbers included in the parameter pageid:
    select display_name from portal.wwsbr_all_folders
    where caid = :first_number
    and id = :second_number

  • How do I get Mozilla to use the page name for the actual bookmark name instead of the URL when I bookmark a page

    I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.

    Does this happen with each bookmark?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Unable to update the page name programmatically

    Hi,
    I'm trying to change the Page title through the program. It seems, its updating but when I actually open the page and see the page it is not showing the updated page title.
    Here is the code
    IPcdObjectFactory pcdObjectFactory =
              ((IPcdGlService) PortalRuntime.getRuntimeResources().getService(IPcdGlService.KEY)).getPcdObjectFactory();
    IPcdAttribute newPcdAttr = null;
    newPcdAttr = pcdObjectFactory.createPcdAttribute(PcdAttributeValueType.STRING, "com.sap.portal.pcm.Title");
    if(att!=null && att.getType() == PcdAttributeValueType.STRING){
         newPcdAttr.set(0, new String("Test : Employé "));
    }else{
         newPcdAttr.set(pcdObjectFactory.getDefaultLocale(), new String("Test FR123: Employé"));               
    ModificationItem[] mods = new ModificationItem[] { new ModificationItem(DirContext.REPLACE_ATTRIBUTE, (Attribute) newPcdAttr)};
    targetobject.modifyAttributes("", mods);
    If we add this page to a workset as a delta link & it should reflect the updated page name
    We are on EP6 SP12
    Thank you,
    Satya

    Hi Satya,
    Can you explain a little what is your intended result? Is not clear (to me anyway) if you want to change the text in the navigation, page title inside an iview or browser title.
    Things that might interfere with what you want to do independent of the intended result is:
    1. Navigation cache: check that is turned off.
    2. User locale vs. iView/Page default Locale. If they are not equal and you change a "translatable" value you could be changing it right but the user won't see it.
    3. Even with the cache turned off I see very dificult that you could see the titled changed if "something" doesn't trigger some kind of refresh.
    Regards,

Maybe you are looking for

  • Typical business case scenarios for SharePoint 2013 Apps

    What are the typical real time business case scenario for 1. SharePoint Hosted apps 2. Auto Hosted apps 3. provider hosted Apps? Why people choose any of this model apps model in comparison to typical On-Premise solution?  Another question comes is w

  • ORACLE 10.2.0.4 OR HIGHER PATCHSEST

    Hello everyone, Does anyone has oracle 10.2.0.4 or higher patchsest. I want to install oracle 10g on my vista machine Or anybody can tell me where we can find that except my oracle support site where I tried but wasn't successful Thanks

  • DWF Template refresh

    Hi I keep on having issues in Dreamweaver (CS4) where I update the DWF template and then navigate to one of the pages to review the global update and find this has not happened, so I then have to make the changes manually. Can anyone provide an answe

  • 11g and SDATA sections

    Considering the new features of Oracle Text in 11g I have the following issue: given table T with columns A, B, C and FTS I need to do a grouping like SELECT b, COUNT(*) FROM t WHERE CONTAINS(FTS, 'X', 1)>0 GROUP BY b. Of course B is added to SDATA s

  • Library content, specifically buttons

    I've had production premium of CS6 installed since a few weeks after it came out. But... I've not needed to make a DVD until this week. So I just opened up Encore CS6 on my win7 machine yesterday for the first time. One of the first things I notice i