Function to generate navigation path

if someosy has a solution to the belowsaid problem, please help:
Input string = "/kronos/TKC4.x/TimeKeeper Central"
should produce:
<SPAN class=emoxsha3>
eDiagnostics > TKC4.x > TimeKeeper
Central</SPAN>
I've used String tokenizer but not getting the desired result.

If you need the two last tokens only, you may try to use String.split(), which will return an array of Strings.
For example, "/kronos/TKC4.x/TimeKeeper Central".split("/"); will return an array of four strings: "", "kronos", "TKC4.x", "TimeKeeper Central".
It's easy then to build your expected result string.

Similar Messages

  • How to display the navigation path in the masthead.

    hi,
       Requriement is to display the navigation path in the masthead.
       how to achieve it.
    regards,
    Shanthakumar.

    Hi,
    I think you want to show the bread crumb in your masthead to show the path to the actual navigation node.
    This functionality already exists in page title bar iview you need to just enable the options in the page title bar iview in your active framework page.
    If you want to have this Functionality in your masthead, just check the codes of page title bar iview and do similar coding in your masthead.
    NavigationEventsHelperService has alot of helper methos which will give you the currently clicked navigation path nodes and more. So also check them.
    NavigationEventsHelperService service =
                    (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(
                        NavigationEventsHelperService.KEY);
                NavigationNodes navNodes =
                    (NavigationNodes) service.getNavNodesListForPath(request, INavigationConstants.NAVIGATION_CONTEXT_ATTR);
    Regards,
    Praveen Gudapati

  • Dimension Library - Security on Dimension member - navigation path please?

    Hi,
    I have been going round in ever decreasing circles trying to find the exact navigation path to ADD a new member such that users who are members of a group can see it from within Dimension Library... specifically my Account dimension has a new top level member.
    Hyperion Planning 11.1.2.0.83, can anyone enlighten me as to the precise key clicks please, the manuals / forums are not helping on this.
    thanks,
    Robert.

    Hi John,
    apologies if I do not make sense... let me explain.
    I have created a new account in the shared library and shared this with the planning application to 'hang' a whole hierarchy off which I import via the interface tables.
    This all works fine when I am logged in as Administrator, but the users do not see the new member or any of its children, so I am assuming that this is a security matter.
    Now the functional security is configured via shared services, but I had thought that Dimension / Account / Member security is configured via the dimension library - am I looking in the wrong place?
    thanks for your time,
    Robert.

  • Help to generate a Path ?

    Hello every body
    It's a first time to poste in this forum and the first time to work in SAP.
    So i have one probleme : i want to generate this url
    http://host:port/contexte/catalog/categorieInPath/(cpgsize=7&layout=5.1-6_1_56_58_5_8_2&uiarea=2&carea=48426F8EC1320099E1008000DE6210B4&cpgnum=1)/.do?key=0/484280B0C13200FAE1008000DE6210B4/48426F8EC1320099E1008000DE6210B4&uiarea=workarea&areaid=navigator
    I have a action Z_MyAction and it's forwrded after success to generated URL
    at this moment i can generate only this URL
    http://host:port/contexte/catalog/categorieInPath/(carea=48426F8EC1320099E1008000DE6210B4)/.do?key=0/484280B0C13200FAE1008000DE6210B4/48426F8EC1320099E1008000DE6210B4&uiarea=workarea&areaid=navigator
    so what can i do to can generate a complet URL with layout...
    thanks
    Jamal

    Hi,
    then generate the path without servername::port i.e like
    catalog/categorieInPath/(carea=48426F8EC1320099E1008000DE6210B4)/.do?key=0/484280B0C13200FAE1008000DE6210B4/48426F8EC1320099E1008000DE6210B4&uiarea=workarea&areaid=navigator
    and add it to isa tag for web url.
    or if you want everything to generate in class then check this class
    com.sap.isa.core.taglib.WebappsURLTag.
    this is the class which the isa tag is using to generate
    Regards,
    Sateesh Chandra
    Edited by: Sateesh Chandra on Jul 10, 2008 3:10 PM

  • A function for generate a actual tree select

    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    Create Or Replace Function Generate_Tree_Fun(p_Path Varchar2,
    p_Delimiter Varchar2,
    p_Level Integer,
    p_Tbl_Name Varchar2,
    p_Parent_Field Varchar2,
    p_Child_Filed Varchar2)
    Return Varchar2 Is
    v_Txt Varchar2(5000) := '';
    v_Row_Num Number;
    v_Max_Count Number;
    v_Child Varchar2(100);
    v_Parent Varchar2(100);
    v_Level Number := p_Level;
    Begin
    If (v_Level = 1) Then
    Return '';
    End If;
    If (v_Level > 1) Then
    v_Txt := '|' || Lpad('_', 6, '_');
    End If;
    If (v_Level > 2) Then
    For i In 1 .. p_Level - 2 Loop
    v_Level := v_Level - 1;
    v_Child := Ltrim(Regexp_Replace(p_Path,
    Ltrim(Replace(p_Path,
    p_Delimiter,
    ')(' || p_Delimiter) || ')',
    '\' || v_Level),
    p_Delimiter);
    Execute Immediate 'Select t.' || p_Parent_Field || '
    From ' || p_Tbl_Name || ' t
    Where t.' || p_Child_Filed || ' = :1'
    Into v_Parent
    Using v_Child;
    Execute Immediate 'Select a, b From (Select Row_Number() Over(Order By t.' ||
    p_Child_Filed ||
    ') a,Count(1) Over(Partition By t.' ||
    p_Parent_Field || ') b,t.' || p_Child_Filed ||
    ',t.' || p_Parent_Field || ' From ' || p_Tbl_Name ||
    ' t Where t.' || p_Parent_Field ||
    ' = :1 Order By t.' || p_Child_Filed || ') Where ' ||
    p_Child_Filed || ' = :2 '
    Into v_Row_Num, v_Max_Count
    Using v_Parent, v_Child;
    If (v_Row_Num <> v_Max_Count) Then
    v_Txt := Rpad('|', 20, ' ') || v_Txt;
    Else
    v_Txt := Rpad(' ', 20, ' ') || v_Txt;
    End If;
    End Loop;
    End If;
    Return v_Txt;
    End;
    select Generate_Tree_Fun(sys_connect_by_path(e.empno,','),',',level,'emp','mgr','empno') || e.ename
    from emp e
    start with mgr is null
    connect by e.mgr=prior e.empno
    enjoy it

    Arash wrote:
    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    We are so proud of you!

  • Insert a Navigation Path

    We want a short navigator on each page which shows the path. It should be possible to 'go back' level by level.
    (something like the Oracle9iAS Portal Navigator - Path: Page Groups > Corporate Pages > Pages).
    Is there something like this 'predefined' or do we have to build that from scratch (are there any samples around).
    Thanks a lot for helping
    Markus

    Which version of portal are you using?
    If you are using V2 then you have an item called Page Path just add this item in a page it will show you the path

  • Create Navigation path in IDT4.0 and how to use these navigation paths in Webi report

    Hi All, I want to know how to create navigation path in universe? I am using IDT BO4.0 SP4 and relational connection and want to create navigation path. I would like to know how to use this navigation path in Webi report? If I create a webi report where can I see my navigation paths and how to use it. If you can give any document or link which expalins this whole process, that would be great. Thanks,

    HI REMI ,
    1. ANSWER TO YOUR 1st QUESTION i.e. HOW TO CREATE A NAVIGATIONAL PATH :
        IN IDT 4.0  , YOU WILL FIND A NAVIGATIONAL PATH IN BOTTOM WHEN YOU WILL OPEN YOUR      BUSINESS LAYER , THERE YOU CAN CLICK CUSTOM NAVIGATION PATH -> THEN CLICK AT      ADD A NAVIGATIOAL PATH BUTTON->THEN GIVE NAME NAVIGATIONAL PATH NAME->THEN ADD THE OBJECTS UNDER YOUR NAVIGATIONAL PATH IN A HIERARCHICAL SEQUENCE .     FOR EX :     COUNTRY->STATE->CITY . AND YOUR CUSTOM NAVIGATIONAL PATH IS     CREATED.
    2. ANSWER TO YOUR SECOND QUESTION WHAT IS THE USE OF NAVIGATIONAL PATH IN WEBI REPORT :
    NAVIGATIONAL PATH HELPS YOU TO PERFORM DRILL DOWN ON YOUR DIMENSION OBJECTS , FOR EX : LET 'S SAY YOU CREATED A NAVIGATIONAL PATH- REGION SALES  : Containing COUNTRY->STATE->SALES. THIS WILL HELP YOU TO DRILL DOWN IN YOUR WEBI REPORT AS SHOWN BELOW :
    COUNTRY                      SALES
    INDIA                             $1000000
    (after clicking INDIA you will get below structure in your Report)
    STATE                           SALES
    DELHI                             $600000
    ANDRA-PRADESH          $200000
    MAHARASHTRA             $200000
    (after clicking MAHARASHTRA you will get below structure in your Report)
    CITY                              SALES
    MUMBAI                         $150000
    NAGPUR                        $  50000  
    ACTUALLY , DRILL - DOWN AS THE NAME SOUND HELP TO DRILL THE DIMENSION TILL ROOT LEVEL & SEE THE MEASURES VALUES ASSOCIATED WITH THOSE VALUES LEVELS.
    1ST LEVEL WILL ALWAYS CONTAIN THE SUM OF THE MEASURE OBJECTS
    CHEERS ,
    KAPIL

  • Check Data Values, Generates Navigation Data steps taking more time

    Hi,
    In the Masterdata load to 0MAT_PLANT
    The step - "Updating attributes for InfoObject 0MAT_PLANT" used to take a Maximum if 23 minutes for a data package size of 100,000 records till three days ago with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 5,4 and 12 minutes respectively.
    For the last three days the step "Updating attributes for InfoObject 0MAT_PLANT" is taking 58-60 minutes for the same for data package size of 100,000 records with the constituent steps "Check Data Values","Process Time-Independent Attributes" and "Generates Navigation Data" taking 12,14 and 22 minutes respectively.
    Can anyone please explain what is needed to speeden the dataload back to its previous timing e.g. if  tables indexes need to built for 'P' or 'SID' table of Mat_plant.
    An explanation of why the delay could be happening in the above steps will be really great.
    regards,
    Kulmohan

    Hi Kulmohan Singh,
    I think there may be a difference between the first update and second update is the 100,000 records is
    already in your 0MAT_PLANT.
    If you update the 0MAT_PLANT in twice, The Modify statement should loop the Q table of
    0MAT_PLANT that was already have the 100,000 records in it,so the upload speed was slowly.
    Hope it helpful you.
    Regards,
    James.

  • ABAP Function Module generator

    Hi,
    I wonder if there is a ABAP Function Module generator for inbound and outbound adapter data. Can I generate a function module in XI to trigger a adapter.
    regards,
    Richard

    Hi,
    There is no tool to "generate" RFCs.  You will have to use SE37 to create the RFCs as always.
    For outbound RFC, you will need only to define the interfaces, e.g. IMPORT, EXPORT, TABLES.  No ABAP code is required.  Then, just populate the parameters and send to XI.
    For inbound RFC, you can develop the RFC to do whatever it needs to do in ABAP.
    In the IR of XI, you can import the RFC's meta data.
    Regards,
    Bill

  • Navigation Paths in 4.0

    BO Enterprise 4.1, SP2, Patch 8
    Newly created Navigation Paths are not registering. 
    I created a report with 2 navigation paths (Date and Sales).  Everything was performing correctly in WEBI.  I added a 3rd Navigation Path (Location) and moved one of the elements from the Sales Path to the new Location Path.
    The report is still performing as if the new Path had not been created and the moved element were still in its original path.
    I have tried in both Rich Client and Launchpad, closed and reopened the report, even restarted the services.
    Does anyone know why this could be happening?

    Do you mean Firefox > History?
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily.
    Go to "View > Toolbars" and check-mark "Menu Bar" with a click if you want to make that permanent

  • Using user defined text functions to generate strings on button.

    I am new to java programming and am facing a problem.. It would be great if you could help me resolving it..
    The problem is:
    Is it possible to use user defined functions to generate the string on a button(button name)?
    If it is possible please educate me on it..
    Thanks..

    Yes its possible. What you ask is so vague that it can be interpreted in so many ways there are plenty correct answers
    public void userDefinedFunction(String aString)
    yourButton.setText(aString);
    }

  • ELoad throwing error - Failed to find navigation path

    Hi,
    I have a script that runs fine in eTester but fails in eLoad with error - Failed to find navigation path when it tries to click on a dynamic link on a page. I think it records the text of the link based on what account I have searched on. If I iterate through my records in the data bank, the script runs just fine in eTester. However, it fails with the "Failed to find navigation path" error in eLoad. Any ideas?
    Thanks.

    Are you able to build the regular expression without the company data?
    For example if my html had this in it:
    <INPUT type="text" id=ticker name=ticker value="TER">
    and I want to extract TER to use somewhere else, I would create a custom variable with this regular expression:
    <INPUT type="text" id=ticker name=ticker value="(.+?)">
    I would have to make the regular expression smaller if the ticker was in there. For example if the html was
    <INPUT type="text" id=ticker name=ticker val= "Teradyne" value="TER">
    I would have to make the regular expression:
    <INPUT type="text" id=ticker name=ticker val=".+?" value="(.+?)">
    -GateCity_QA

  • Navigation path in SAP

    Hi,
    from easy access or SPRO screen how can we get the navigation path of a Transaction? like
    Logistics u2192 Logistics Execution u2192
    Internal Whse Processes u2192 Bins and Stock u2192 Display u2192 Total Stock per Material
    Is there any way to get the path directly which will be helpful in documentation

    Hi
    I hope I GOT YOUR QUESTION  correctly.
    U want to find out the path which u dont no whr it is exactly..
    If u want to find out the spro path from the field say u r in some screen say example
    XK01 - Vendor Creation  - Acct Group Field n u want to know the spro path for the same Just press F1 from the field n see the next pop up window.
    Thr u can find a icon called customizing.. just click on to that then ... enter the project name or click on with out project
    It will guide u to goto the spro path from thr u can choose in which broad area it was say "purchasing" or "Fina Acct" which u like to find or modify the spro settings
    Regards
    Ram

  • Differences in Data Source Navigation Path

    Can anyone tell me why some instances/implementations of WebLogic have different navigation paths to Data Sources? I've seen the following:
    Example 1: Domain Structure > Services > Data Sources (Console version 12.1.1.0)
    Example 2: Domain Structure > JDBC > Data Sources (Console version 10.3.3.0)
    I thought I had seen the path Domain Structure > Services > Data Sources in 10.3.3.0! Does anyone know if these differences are due to versions of WebLogic or whether they are due to different installation options, preferences, or something else?
    Edited by: user12702338 on Mar 19, 2013 1:16 PM

    Hi,
    Difference seen in path are due to versions, no issue with configuration/installations.
    Going back there were changes made for JDBC path between versions 8.1 and 9.2 also.
    Thanks,
    Ranjan

  • How to Force JHS do not generate navigation cases for Groups?

    Hello
    I have already seen "Overwrite faces-config and navigation rules " property for Group in JhsApp deff .But It does not work .How Force JHS do not generate navigation cases for Groups? and another question is that how can I customize navigation case generation in JheadStart?
    Thanks

    Hi,
    You are right: the navigation rules in the main faces-config file are overwritten, even if you uncheck these flags. Here is the solution:
    If you want to preserve some of the navigation rules in the main faces config: alter the velocity template for faces-config. You can only switch off the entire generation of faces-config.xml; not individual parts.
    If you want to add a special navigation rule: add it to the group faces config file.
    If you want to preserve post-generation changes to the group faces config file: uncheck 'generate controller group?' or put it in the templates for that group.
    Note: the flag 'Overwrite Faces-Config beans and Navigation Rules?' has become obsolete, you should only use 'Generate Controller Group?'.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

Maybe you are looking for