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

Similar Messages

  • 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

  • By default collapse all folders in Detailed Navigation

    Hi,
    Could anyone tell me if it's possible to collapse folders which are build in this manner:
    Role 1
    .. Folder 1
    .... Page a
    .... Page b
    .... Page c
    .. Folder 2
    .... Page d
    .... Page e
    .... Page f
    .. Folder 3
    .... Page x
    .... Page y
    .... Page z
    ect...
    I am working with EP6sp14, especially to run the External Facing Portal.
    Thanks helping me and my customer..

    Hi Leurs
    Ur req is very much possible
    What u need 2 do is make ur
    1)toplevel navigation level to 0
    2)detailed level navigation display level property to 1.
    I will explain each step
    1) I. Configure Top-Level Navigation
       1.In the Portal Catalog choose <b>Portal Users-> Standard Portal Users.</b> This folder contains the <b>Default Framework Page</b>.
       2.Right-click <b>Default Framework Page</b> and choose <b>Open->Object</b>.
       3.From the Page Content List select the <b>Top-Level Navigation iView</b> and click <b>Properties</b>.
       4.Scroll to the <b>Number of Display Levels</b>property and enter the value 0, 1, or 2, depending on how many navigation levels, if any, you want for top-level navigation.
         <u><b><i>Choosing 0 removes your top-level navigation and displays your navigation structure in the Detailed Navigation iView.</i></b></u>
       5.Click Save.
    2 Configure Detailed Navigation
      1.From the Page Content List of the <b>Default Framework Page</b>, select <b>Desktop Innerpage</b> and click Open.
      2.From the Page Content List of the <b>Desktop Innerpage</b> select the <b>Detailed Navigation iView</b> and click <b>Properties.</b>
      3.Scroll to the <b>Start at Level property</b> and assign a value that is one higher than the value of the <b>Number of Display Levels</b> property in procedure l. Configure Top-Level Navigation. For example, if top-level navigation is configured for one level, the detailed navigation begins on the second level, that is with the value 2.
      4.Click Save.
        <u><i><b>Detailed navigation is not automatically synchronized with top-level navigation; the values you enter for top-level and detailed navigation must agree. For example, if you enter the value 1 for top-level navigation, while detailed navigation still has the value 3, one level is left out, creating a gap.</b></i></u>
    III. Configure the Content Area
       1.From the Page Content List of the <b>Desktop Innerpage</b>, select the <b>Content Area</b> iView and click <b>Properties.</b>
       2.Scroll to the <b>Number of Display Levels in TLN</b> property and enter the same value as that of the <b>Number of Display Levels</b> property in procedure I. Configure Top-Level Navigation.
       3.Click Save.
    These steps will make ur Portal the way u want, i guess.
    Regards
    Bobu

  • Expand option in detail navigation menu.

    Hi.
    We have 3rd, 4th level menu in detail nabigation area.
    I means that we configured following.
    Folder - 3rd
       Iview 01 - 4th
       Iview 02 - 4th
    Folder in detail navigation was collapsed in default.
    Is there any way to expand all menu in defail navigation ?
    I try to find a properties in Folder but I can't.
    Any ideas ?
    Regards, Arnold.

    Any ideas ?
    Regards, Arnold.

  • Folders in detailed navigation

    Hi all,
    I've created a role and a workset which is assigned to that role.
    In that workset i've some folders which contains iviews and i need the folders to be available in the detailed navigation panel for that role to view those views... but i'm not getting that folders in the detailed navigation list.
    Can anyone help me to get the folders in the navigation panel?
    Rergards,
    Vijay

    Hi Vijay,
    The basic concept is that what is seen to enduser is IVIEW
    excepr that nothing is visible,What you are doing is that
    Role - -> Workset - - > Folder (Iviews)
    With this how could you can view folder in Detailed level navigation.
    What you can Try is
    Role - -> workset  - - >Km Navigation Iview (Stating path of Folder to be Displayed ).
    It will work fine.
    Please reward pionts if helpfull.
    Regards.
    Vinit Soni.

  • Set dialog box to open directories in "Details" view by default

    Hi,
    Is there a (natvie LabVIEW) way to set dialog boxes (file select, file save etc.) to open the folders in "Details" view by default, or is it necessary to make calls to the win API?
    Thanks,
    Chris

    smercurio_fc ,
    Thanks for the information (and I followed the linked and voted, by the way).
    Best Regards,
    Chris

  • Light Detailed Navigation Vs Heavy Detailed Navigation

    Hi All,
    What are the advantages/ disadvantages light detailed navigation have compared to normal detailed navigation. Is there any comparison chart available?
    Using normal Detailed Navigation, I could not see the URL's in my browser ( its always http://server:port/irj/portal ). I want to use the short urls and show the url in browser. Its working fine ( can see the url's) when used light detailed navigation.
    how to view the urls ( navigation url's) when used normal detailed navigation?????????? I know if we use light detailed navigation we can achieve this, but need it with normal / regular detailed navigation.
    Thanks,
    PradeeP

    Thanks again,
    As per the comparison sheet, SAP says Short URL's and Quick Links are supported in Default Framework page. But when I use Default Framework page with Default detailed navigation, Its not showing up the URL's in browser, I couldn't even see the short URL, Quicklinks while navigation in portal.
    My Actual requirement is giving the portal URL's links to the users to access and end users can get iview / page urls and save it for his / her future purpose.
    By using the Quick Links, we can give the quicklink to the enduser that he can use ( like http://xxx:5000/irj/portal/QUICK LINK).
    But when end user is navigating in portal using default famework and detail navigations, he couldnt see this quick links in browser.
    If I put Light Detailed Navigation with Default framework, will it work?
    because we have ESS and some BSP apps in our portal which uses EPCM and Work protect mode which is not supported by Light framework. But will it be supported by Default framework with light Detail navigation?
    Thanks,
    Pradeep

  • Can you default a detailed navigation folder to an "open" state?

    We have a workset containing iViews, and the detailed navigation on the left displays the iViews within a folder as we would like.  However, the folder defaults to being closed, thus making the user click twice to arrive at an iView inside.  Is there a way to default that folder to being open?

    Hi Kris,
    Its is not possible to have a folder expanded by default when you have all other parallel folders are closed.
    Either you can expand only the root folder on DLN or expand all the folders. Expanding all the folder option would need DLN .par customization.
    Set the below settings to open launched folder:
    Go to Your current Framework Page -> Desktop inner page -> Open Detailed Navigation iView and set the property ->  Open Folder when Launched as yes.
    Initial State of Navigation Panel option shall expand/close the entire DLN.
    Ram

  • Detailed Navigation expand node

    Hi everyone,
    I've been trying to open by default the first node in my Detailed Navigation. I have come very close using the following code which I placed in an iView:
    response.write("<SCRIPT>");
    response.write("var all = window.DetailedNavigationTree.getNodes();n" +
                   "dynamicLoad(all[0]);");
    response.write("</SCRIPT>");
    This causes the node to be open when you first click in the TLN.
    I can close the node by clicking either on the text or on the down arrow next to the node. Now, if I click on the arrow again, the node opens fine, BUT when I click on the text again the node does not reload.
    Anyone have any ideas why or how to work around this problem?
    I've been looking at detailedNavTree.js, dynamicTree.js and dynamicLoad.js .
    Any help would be appreciated a lot!
    Thank you,
    Regards,
    Ale

    Everyone,
    I have found the solution. The issue was that when we clicked on the text in the detailed nav, the whole page would refresh. This would cause the menu to expand but then the iView with the dynamicLoad() was called again and automatically collapsed the menu again!
    So i added a boolean in the class which makes the dynamicLoad() execute only the first time the iView is loaded.
         private boolean mDone = false;
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             if(!mDone) {
                   response.write("<SCRIPT>");
                   response.write("var all = window.DetailedNavigationTree.getNodes();n" +
                        "dynamicLoad(all[0]);");
                   response.write("</SCRIPT>");
                   mDone = true;
    Hope this helps!
    Ale

  • 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!!!!!!!:-)

  • How to make Detailed Navigation Window by default open?

    Hi, 
    Is there any way to set the Detailed Navigation Window by default to open?
    I have gone through different posts but I could not get a clear way to do this.If some body can hint me I would be very much thankful.
    Thanks & Regards
    Mrutyunjay

    Hi,
    do you mean the navigation panel on the left side? If so find the frameworkpage you are using. Open, goto InnerDesktop. Select properties for this page. Here find a property <i>"Initial state of navigation panel"</i> - set to <b>open</b>.
    Hope this helps,
    Romano

  • Detailed Navigation is closed by default

    Hi,
    The Portal with all packages is running fine in test system.
    The first Page (welcome) is displaying some KM-News in the content section and has some links in the detailed navigation (DTN).
    Then, I exported the ivies/pcd with all roles etc. to the production system.
    Now, whatever value I put in "Initial Display" in the roles (Automatic/Open), the first time, the user logs on, the DTN is completely close. If if reload the page, everything is fine and the DTN is open.
    I also checked the default framework page, but it is set to "OPEN" as well.
    No clue no more.
    Thanks for any help

    Hi,
    did you modified the TLN display level and detailed navigation display from level options?
    it looks the problem caused by this.

  • Default Detailed navigation and Portal Favorites naming and sections

    Hi,
    I want to manipulate the 'Detailed Navigation' and 'Portal Favorites' on left side menu of my manuscreen. I want to rename them and manipulate to add my own iViews fixed iViews under the Portal Fvorites.
    Now, I do find the Portal favorites default iView under ortal menu Content provided by SAP - end user content - Standard Portal Roles, but it is an iView, and I can't add iViews to an iView.
    I don't find the default Detailed Navigation iView nor page.
    Does anyone know how I can change these settings to fit my menu, without having to create a pop-up page?
    Kr,
    hilde

    Hi,
    To fine the Detailed navigation iview:
    Goto Content provided by SAP >end user content>standard portal users>Default framework page>open Desktop innerpage-->here you see detailed navigation iview..
    Change the name of the iview goto iview property-->Change the Name property...
    Add ur iview in to the role & open it.. It will open in the content area then add this iview to portal favorites..click on the right top corner menu & select Add toportal favorites...
    Regards,
    Senthil K.

  • Detailed Navigation (disable expand./collapse icons opening tree

    Hi,
    I would like to adjust the detailed navigation as this site performs with having no action when clicking the +/- icons.
    Please can someone point me in the right direction.  I have been able to get the detailed navigation.par file out and look at the jsp code, but not sure where this requires a change.
    Will reward points for a helpful answer....
    Kai

    If I am reading your question correctly, you want to create a detailed navigation similar to SDN so that when you click on the expand/collapse icon it doesn't do a server round trip.
    Firstly I believe that the standard one performs a round trip to retrieve the nodes underneath the one that you have expanded.
    With SDN we created our own detailed navigation iview so that the entire navigation structure is loaded immediately. This is also the same if you use the standard light navigation iview I believe, so you could simply use this iview instead.
    I hope this helps
    Darrell

  • User selecting default display page from detailed navigation

    Hello all,
    Can individual users select a default display page from the detailed navigation section? For instance, say I have a list of pages in the detailed navigation each showing a BW report;
    Detailed Navigation
    Report 1
    Report 2
    Report 3
    Report 4
    So when the users navigate from the top level to here then 'Report 1' is automatically displayed. Say that towards the end of the quarter userX will be looking at 'Report 3' mostly while userY will wish to concentrate on 'Report 2', can the users themselves set their default? Or must this be done by the portal admin, rearranging the order of these pages in the assigned role or changing the display priority of them? But then it wouldn't be per user, if they shared the role.
    If the users cannot do this themselves is there a way to do it in Java perhaps?
    Thanks for you time,
    Patrick.

    Hi Detlev,
    We decided on an easy way through.
    Each page has to display a BW report, very simple. So we're going to give the users an iView where they get a list of all BW reports that they have access to (read from a text file). From there they select what they wish to be their default report (written to another text file).
    The default page (first on detailed navigation) reads the text file and displays the BW report found there in an IsolatedHtmlContainer. Not precisely what was wanted at the start but pretty much offers the same functionality.
    Thanks for your help, I'll read the doc. It's always good to know these things.
    Patrick.

Maybe you are looking for