Expand all folders in the detailed navigation by default on click of Role

Hi All,
I have a requirement on expand all the folders in the detailed navigation by defalut when we click a Role in the Fist level navigation.
Please have a look about our requirement as mentioned below.
->Role1(First Level Navigation)
   ->Wokset1(Second Level)
       -> Folder1(Detailed Navigation entry Folder)
              -> Folder2
                   Page1
                   Page2
              ->Folder3
                   Page3
                   Page4
              -> Folder4
                   Page5
                   Page6
When the user clicks on Role1 then automatically all the folders in the detailed navigation should be expanded by default then user could see all the pages displayed in all folders. currently the functionality is collapsed all the folders by default in the detailed navigation then user has to expand the folders manually.
Regading this issue, i had seen couple of threads on the same but getting confusion what is the exact solution for the solution.
in those existing threads some people has mentioned that need to change code in the lightdetailnavigation.par or some other mentioned that it is not worked out even do the required changes in the code of light detail navigation part file. there is no clarity in the existing threads for getting  the exact solution . please let me know what are the properties needs to be changed at folder level or workset level to make sure all the folders should be expanded by default in the detailed navigation??
Currently we are using portal 7.0 version.
Any pointers in this regard would be the great help to us??
Thanks in advance.
Regards,
PortalUser
Edited by: PortalUser100 on Jan 22, 2011 10:15 AM

Hi,
To expand all the folder by default, we need to set the property of the detailed navigation tree.
Open your framework page in the content administration.
Check on the detailed navigation check box and click on the properties button.
In the properties, set the value of initial state= OPEN .
This will expand all the folders by default.
Hope you understood.
Regards
Nishant

Similar Messages

  • Expand folders in Detail Navigation by default

    Has anyone figured out a way to have the folders in details navigation expanded by default the first time the user clicks on the tab? 
    I tried this:
    Expand all folders in the detailed navigation by default on click of Role
    But it didn't work for me.  I have seen other claims that it can be set desktop wide, but no solution.
    Any help would be much appreciated.
    Clark

    Prathamesh,
    First of all thanks so much for your suggestion.  It would have worked perfectly if I was using the lightweight version of the detail navigation.  But is did lead me to download the code for the detail navigation tree par file and I found some interesting things. 
    First of all this should work by changing a parameter on the iview according to the code I found.  See the code below (particularly the set state line). 
        private void openFolder(IPortalComponentRequest request, HashMap dropJScriptsMap, ITree tree, INavigationNode node, ITreeNode treeNode)
            if(treeNode == null)
                return;
            IPortalComponentContext componentContext = request.getComponentContext();
            IPortalComponentProfile profile = componentContext.getProfile();
            Boolean leafNode = null;
            try
                leafNode = (Boolean)node.getAttributeValue("com.sap.portal.navigation.IsLeaf");
                if(leafNode == null)
                    leafNode = Boolean.FALSE;
            catch(NoSuchAttributeException ex)
                leafNode = Boolean.FALSE;
            String openFolder = profile.getProperty("com.sap.portal.navigation.detailedtree.openfolder");
            if(openFolder.equals("true") && leafNode != Boolean.TRUE)
                treeNode.setState("o");
                addNavNodeChildrenToTree(request, tree, node, dropJScriptsMap, true);
    But it only looks to work if the folder is at the top level.  Otherwise it rights children as closed.  See the line for setState in method addNavigationNodesToTree.
                if(newNode.getVisualizationType() == 2)
                    if(parentNode != null)
                        treeNode = tree.addNode(nodeName, title, "F", parentNode);
                    else
                        treeNode = tree.addRoot(nodeName, title, "F");
                    treeNode.setState("c");
                    treeNode.setFolderOpenImage(mm_folderImageUrl);
                    treeNode.setFolderCloseImage(mm_folderImageUrl);
                } else
    So I really have 2 options.  I can redeploy new code with the line just above changed (I didn't plan on modifying the SAP delivered), or I can move my nodes up to a higher level and change the parameters on the iview.
    I hope others might find this useful and perhaps SAP will adopt another iview parameter in the future to completely allow for this as it seems pretty trivial.
    Thanks again.
    ACD

  • Fixing the detailed navigation view.

    Hi
    We all know that we can expand or shrink the detailed navigation view. Is there any way to make the detailed naviagtion view immovable I mean it should have fixed width and it cannot be expanded or shrinked.
    Thanks in advance
    Srikant

    Hi DV,
    We can remove the expansion and shrinking of the navigation panel by removing the navigation panel header, using the theme editor. U cannot remove it as such but u can reduce the size to a minimum so that it wont be visible at all.
    The detailed navigation panel is an iview. It can be found in PCD>>Portal Users>>Std Portal Users>>Default Frame work page>>Desktop inner page. There u cna see the detailed navigation panel and u can edit its properties over there.
    Hope this Helps
    gEorgE

  • How to put a web link in the detailed navigation

    How can you put a web link in the detailed navigation?
    I know that if your role contains iviews that are 3 levels down (default), then the link to the iview will appear in the detailed navigation. But, I want to put a link to a external site in the detailed navigation - is this possible?
    Thanks
    Patrick

    I have a page set with a url iview and it opens from the detailed navigation in a  new window fine.
    however when clicking on a link to the page via a landing page which displays the KM content page folders, it loads it in the portal active window still (with nav and masthead).
    Any ideas how to get the km link to open in a new browser window?
    thanks
    Message was edited by:
            Alex McKnight

  • Different links in the detailed navigation, based on URL alias

    <u>What I'm trying to do :</u>
    Based on URL aliases /irj/portal/individual or /irj/portal/business
    I will dynamically add an UME group to the already logged in user.
    <u>Filter :</u>
    If clicking on /irj/portal/individual I will store "group=individual" in the context, and add UME group individual, if clicking /irj/portal/business I will store "group=business" in the context, and add UME group business and remove individual, and then redirect to the same URL.
    <u>Configuration</u>
    Each UME group has a one-to-one mapping to a Portal role.
    I will place an ACL on the PCD content, based on group, hiding/showing aggregated folders, hanging under the roles.
    <u>Wanted end-result</u>
    Different links in the detailed navigation, based on URL alias.
    <b>My question is how you would implement the filter part, mentioned above ?</b>
    Portal app or J2EE servlet filter or something else ?

    Hi sunil,
       Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
    Regards,
    Harini S

  • Search IViews in the detailed navigation and display history data too

    hi all
    we have a req. that we will put an input box and a search button in the detailed navigation pane of the portal.
    the user need to put the transaction code and the corrosponding iview opens up in the content area.
    we first needed the way to be able to search that transactional iview inside the iviews folder but were unable todo so. what we did is to hard  code the pcd location of each iview in dynpro and uploaded that file which works fine.my questions are
    1.do we have  a way to search for a part.transacion based on its code in a part. folder
    2.we need to keep track of what iviews user searched for in past and promp him with that T-code when he starts writing the code. eg if he type S the prompt lists all T-codes which he seached in past starting from S. very much like it happens in google.com or over ur browser address bar.
    plz help if anyone is possible.
    thanx in advance

    Hi Vaibhav,
    What do you mean by suppressed?
    Is it gone, or just closed?
    If it is just closed, you can try 2 things:
    1. Check if the property "Initial State of Navigation Panel" of the page has any influence.
    2. There is a javascript method that opens it.
    You can see it by importing the file '<b>com.sap.portal.layouts.framework.par.bak</b>'.
    Navigate to
    System Administration -> Support -> Support Desk -> Portal Runtime -> Browse deployment
    then the folder
    ROOT/WEB-INF/deployment/pcd
    and press download.
    Import from par to Developer Studio, and check the javascript files under dist/PORTAL-INF for a function called something like 'expandTray'.
    Hope that helps,
    Yoav.

  • Dynamically changing the detail navigation

    Hi all,
           can anyone please tell me how to change the detail navigation  dynamatically..
    Regards,
    Jeyasingh Samuel

    Hi Srinivasa,
    There are 2 things you can do:
    (1) You can simply set the invisible property for the iViews (I think this is what you want).
    You create a settings page which lists all the iViews, and when the user clicks a button, the page gets all the settings for all the iViews and sets the invisibility property for all of them.
    The invisibility property indicates whether to display this object in the TLN/DTN.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
    env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
    env.put(Context.SECURITY_PRINCIPAL, request.getUser());
    env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
    iCtx = new InitialContext(env);
    //Create loop of all objects 
        String pageID = "portal_content/DanielContent/DanRole/Folder1/Folder2/Page1";
        IPage myPage = (IPage)iCtx.lookup(pageID);
        myPage.putAttribute(IAttriView.ATTRIBUTE_NAVINVISIBLE,"true");
        myPage.save();
    The above code is for a page, but you can do the same for an iView.
    (2) If you iViews are in a page, and do not appear in the navigation tree, but you want to make them invisible, you can set this property on the iViews.
    myIview.putAttribute(IAttriView.ATTRIBUTE_AVAILABILITY,IAttriViewValues.AVAILABILITY_VALUE_AVAILABLE);
    myIview.save();
    Either way, make sure to set the personalization environment variable when you do your PCD lookup, as shown above. Otherwise, the changes for one user will affect all users.
    Hope this helps.
    Daniel

  • When using Ip-address in EP URL, the Detailed Navigation menu doesnt open

    Hi,
    We are facing a strange situation where if we use the ip address in EP url (e.g. http://172.12.65.12:50000/irj) the Detailed Navigation menu does not open at all for all tabs, and also when we try to log off, the termination pop-up comes but after that nothing happnes and we remain at the same screen (from where we tried to log off).
    However, when we use the host name in the url (e.g http://hostname:50000/irj) everything works absolutely fine.
    Can anyone please help us with this.
    Thanks & Regards,
    Angad

    Please check the  Note 654982 - URL requirements due to Internet standards
    The EP URL should be like this ..
    http://<hostname_of_Portal server>.<Domain_name>:<http_port of WAS JAVA _CI>/irj
    e.g  http://myhost.sales.mycomp.com:50000/irj
    The formulae to claculate the  http port of WAS JAva CI is
    50000+(100*Instance no of CI)  or simply 5XX00, where XX stands for the 2 digit no representing the Instance number of the sentral instance.
    If you dont know this number , there are other ways to find out this.
    Priyabrata

  • Changing the Detailed Navigation link

    Dear All,
    I need to change the Detailed Navigation link so that it is right aligned and the arrow image is followed after the link.
    Ex.    Sales Reports =>
    when it is opened then the following should be the view
              Sales Reports *
                       Report1  o
                       Report1  o
    Do let me know if this can be achieved by any theme settings; if not then what should be the approach for the same.
    Regards,
    Samir

    Hi Samir,
    This is not possible by just theme settings, For this you need to modify the Detailed Navigation Par file.
    Download the the Detailed Navigation par file open the jsp page and saw the columns .
    Regards,
    Piyush

  • Add iviews under the detailed navigation

    hello
    how can i add iviews in the left side under the detailed navigation
    eg: like the "quick poll"  in the "news" page from the "eu_role"
    thx
    irina

    Hi,
    you can use the following steps to do this( for this you need to have content admin rights)
    goto content administration ->portal content -> portal users -> standard portal users ->default frame work page -> desktop inner page -> open it and goto your iview which you might have created and right click  and add iview to page as delta link or copy.
    or
    goto content administration ->portal content -> content provided by sap ->
    end user content -> standard portal users -> default frame work page ->
    desktop inner page -> open it and goto your iview which you might have created and right click  and add iview to page as delta link or copy.
    please i will suggest you better you create you own portal desktop and do all this operations since if you alter any think in the default frame work page it will have the impact on all of theuser who are using that portal.
    *******please reward points if the information provided is helpful to you**************

  • Can't find services in the Detailed Navigation when open from Overview page

    Hi,
    We have developed a custom area page for our ESS application. The area is visible in the Overview page as well as in TLN (Top leavel navigation). When we open the area from TLN the services under this area are visible in the Detailed Navigation(DN) on the left. But when we are trying to open the area from the overview page we can't be able to see the services in the DN and we have realized that the focus is on "Overview" in the TLN. In DN also only the Overview link is coming. But for other standard ESS applications the focus in the TLN is changing.
    Please help to find the solution.
    Thanks,
    Sekhar

    Hi Sekhar,
    Did you get any solution for this issue. I am facing the same situation.Please advise.
    Thanks,
    -Ashwani

  • How can you set the default width of the 'Detailed Navigation iView'?

    Hello,
    we would like to reduce the default width of the 'Detailed Navigation iView' in order to save some screen space.
    So far, we havn't found the right item in the portal admin to do this.
    Any help would be much appreciated! Thanks in advance.
    Frank Schülke, E.ON Ruhrgas, Germany

    Hi Frank,
    You can change the width of this navigation iview  by changing the value of "defaultExpWidth" in the file WAandNAVPanel.js present in the par file com.sap.layouts.framework.par from default value 220 pixels to the value you want.
    upload the changed par file and restart the server.
    Hope this helps,
    (if not do get  back )
    Regards,
    Uma.
    Do award points for helpful answers in SDN!!!!!!!:-)

  • I  want to hide the detailed navigation and portal favorites

    Hello:
        Every person in SDN!
        I find another problem in WPC.
        I create a WPC role called A.After I preview this role,I  want to hide the detailed navigation and portal favorites.
        but I don't know how to do?
        Who can help me?
        lexian
       Thanks a lot!

    hi,
    you can do using default frame work page.
    1.go in portal_content/portal_users/standard_portal_users
    2.open default frame work page unclick the top_level_navigation
    then you wont be able to see TLN
    jayesh talreja

  • How can I add an iView to the Detailed Navigation itself

    How can I add an iView to the Detailed Navigation itself and hides the other hyperlinks?

    To add an iview on the Detailed navigation side of a page:
    1.Double click the page which brings up the page editor.
    2.Click the Display dropdown box and choose Dynamic Navigation.
    3.Add an ivew to it.Save and add the page to a role to see the results.
    if this is not u wanted, post back here.
    Regards.

  • Problem navigate  from the "detailed navigation"

    Hi ,
    I created a role that include workset.
    the pages of the workset are being  displayed in the "detailed navigation" area .
    when i navigate from "a" to "b" in the ""detailed navigation"...i have 2 problems :
    1. sometimes i see the portal logon page .
    2. it navigate back to the entry point of the first displayed role .
    Any ideas how to solve this problem ???
    Thanks Faniel.

    If your portal is abc.foo.bar.com:5000 and your iView tries to access content in abc:50000, then you might be prompted to logon again.
    Are the WD applications running on the same instance as the portal, or are they running on a different instance?
    What is the cookie lifteime?
    Cheers

Maybe you are looking for