Collapse all tree issue

Is there a way to modify or change a CONTRACT_ALL request of a Collapse all button of a tree, so all the highest level branches are displayed (those directly under a root). Currently only a root branch is visible after a request is processed.
Thanks,
Art
Edited by: ArtS on Dec 7, 2009 12:00 PM

I've found a work around. I've removed a Collapse all button, renamed a Reset Tree button to Collapse all and set MAX_LEVELS to 2.
Edited by: ArtS on Dec 7, 2009 12:28 PM

Similar Messages

  • How to collapse all tree nodes in PL/SQL?

    I'm experimenting with manipulating trees in page processes by using e.g. FLOWS_030100.WWV_FLOW_TREE.EXPAND but I don't see how to implement the functionality of the "Collapse All" button in PL/SQL. Maybe somehow manipulate the FLOWS_030100.WWV_FLOW_TREE_GLOBAL_VARS variables directly but how?

    Hi,
    I'm also interested in something like this. I'm trying to collapse all when a selectlist with submit that affects the tree is changed. I've tried creating a conditional branch that catches said change, using the 'COLLAPSE ALL' request that the autogenerated button calls, but it didn't work.
    Any ideas?
    Thank You,
    Marc

  • DHTML Tree Expand-Collapse ALL buttons

    Hi
    I am using at DHTML Tree (in APEX 3.0.1) as a menu. I am wondering if it is possible to add buttons (or link) to the region which a user can click to expand all or collapse all nodes in the tree.
    I don not want the tree to be expanded or collapsed all the time (as when using the Tree List template)
    Thanks

    Anyone?

  • Expand/Collapse All functionality in TREE UI Element

    Hi All,
    I'm using Tree UI Element in which Collapse All button is coming defaultly in that Tree Application . But i need to know how the function is taking place behind . Because i need to refer to do it for Expand All scenario for the same tree . Is that collapse is refering to any method in class ? . Can anyone brief out the coding of that . Or if anyone knows the coding of Expand all pls refer to me,

    Hello Ramesh Vinay,
    *Create a node which has attributes (EXPANDED, IS_LEAF,ROW_KEY and PARENT_ROW_KEY) to build a tree.
    Following code will be executed when COLLAPSE ALL button is clicked.
    DATA: lo_nd_tree            TYPE REF TO if_wd_context_node,
               lt_elements           TYPE             wdr_context_element_set.
    FIELD-SYMBOLS:
            <lo_element>          TYPE REF TO if_wd_context_element.
    lo_nd_tree = wd_context->get_child_node( name = wd_this->wdctx_tree).
      lt_elements = lo_nd_tree ->get_elements( ).
      LOOP AT lt_elements ASSIGNING <lo_element>.
        <lo_element>->set_attribute(
          EXPORTING value = abap_false
                    name  = u2018EXAPNDEDu2019 ).
      ENDLOOP.
    Following code will be executed when EXPAND ALL button is clicked.
    DATA: lo_nd_tree            TYPE REF TO if_wd_context_node,
               lt_elements           TYPE             wdr_context_element_set.
    FIELD-SYMBOLS:
            <lo_element>          TYPE REF TO if_wd_context_element.
    lo_nd_tree = wd_context->get_child_node( name = wd_this->wdctx_tree).
      lt_elements = lo_nd_tree ->get_elements( ).
      LOOP AT lt_elements ASSIGNING <lo_element>.
        <lo_element>->set_attribute(
          EXPORTING value = abap_true
                    name  = u2018EXAPNDEDu2019 ).
      ENDLOOP.
    Reply me if you have any questions.
    Thanks,
    Bharath.K

  • Collapse All and Expand All functionality in Tree

    Hi All,
    I am using TreeByNestingTableColumn element to display the tree hierarchy .
    Does anyone knows how to implement Collapse All and Expand All functionality for this tree (if someone have sample code for these functionality then it will be great for me) ?
    Thanks in advance.
    Ravi.

    Hello Ravindra Sahu,
    Code for EXPAND ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_true.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Code for COLLAPSE ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_false.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Please don't forget giving REWARD points...:-)
    Edited by: Bharath Komarapalem on Jul 11, 2008 9:17 AM

  • How to disable "Expand All" and "Collapse All" when no node in a tree

    I have a <af:tree> inside <af:panelCollection>.
    All items under viewMenu like "Expand", "Expand All Below", "Collapse All Below", "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are implemented by default.
    When there is no node in a tree, "Expand", "Expand All Below", and "Collapse All Below" are grey out.
    However, "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are still enabled to be clicked.
    Is there any way we can diable them when no node?

    When I highlight last node in the tree and all nodes are collapsed, I see "Expand All Below" enabled but "Collapse All Below" disabled. Which is expected. Expand All Below will expand all the child nodes under a node.
    QA filed a bug said that "Expand All Below" should be disabled since no node below it. However, I don't find any place to control them. Can you confirm this? Or you know some way to do this?It it not a bug then. You don't have to control it and framework takes care of enabling and disabling it accordingly.
    If you need to expand all the nodes programatically, check this out.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/78-man-expanding-trees-treetables-354775.pdf
    -Arun

  • Collapse all Folders in Finder

    Is there a way to collapse /all/ folders in Finder instead of hunting them down and closing all of them one by one?
    Thanks.

    Hotwheels22 wrote:
    is there a way to collapse or uncollapse all folders in finder?
    I really still do not understand this question. Presumably you are not referring to List View (which is what I associate with collapse/expand). Icon View will open/close folders; List View will expand/collapse directory trees; Column View will scroll through path hierarchies; which one are you trying to do?
    Do you mean you want to open multiple folders while in Icon View? If so, select the folders you want and hit ⌘+↓. All of them will open as long as they are all from the same Finder window. Afterwards, for you to close all Finder windows except one, you'd need to use one of the two AppleScripts I linked earlier.
    Maybe you are asking for a method to double-click one folder and have it and all its subfolders open up in their own Finder windows (essentially, you want to open all nested folders with one click)? I think you'd need to build an AppleScript for that. The OS will not have such a function built in because the depth of some directory trees could easily freeze a computer.
    i have a ton of documents and it is really inconvenient to have to open /all/ the folder to find things.
    If you assigned non-generic names to your folders and documents, you should be able to use Spotlight and Smart Folders to get to your files. For example, since I name my project files with the format DateProject_DocumentVersion, it's easy for me to create a Smart Folder that shows me all finalized/approved parts lists from a project I did two years ago, regardless of where they're located in my archives. It's even easier if you also use Spotlight Comments and/or color labels.
    then when i get them open it is a total pita going and collapsing all of them. i guess i can close out of the finder window altogether but i'd like to stay in the same window and keep working.
    Did you try either one of the two AppleScripts I linked earlier? They allow you to close all Finder windows except the active one. Finder doesn't have a built-in, default option to close all windows except the active one.
    btw, i'd also like to do the equivalent for windows on the desktop so i can get to the desktop quickly. right now I have to move them over or minimize them one by one...
    i guess getting familiar with expose or witch may do this?
    Exposé can temporarily displace (not hide) all windows to show just the Desktop. ⌥⌘H will hide all other applications except the active one (or if you wish to specify which particular application stays unhidden, ⌥⌘+click the app's icon on the Dock). To actually hide (not close) all visible windows, you'll need to run an AppleScript ➚.
    also can i ask you if there is a way for me to post a video of screenshots to this site? i have an issue that would be helped by doing this...
    You'd need to upload to a video host, like YouTube, and then paste the link over here.

  • Expand All and Collapse All with Data table

    Hi Guys,
         I have a data table as shown in code pasted . where the first and second column have row category which gives a categorization with a twisty.
         When i click on the twisty or item name the level beneath it expands. Eerything works fine.. but i need to have to links     Expand All and Collapse All which when clicked open the entire hierarchy or collapse it. Can anyone suggest a way of doing. Can it be done using javascript, I am not comfortable with java script .If someone has done this before please share the piece of code.Also please suggest the different ways of doing it. I am using RAD 7 and IBM JSF components.
         <hx:dataTableEx border="0" cellpadding="2" cellspacing="0"
         columnClasses="columnClass1" headerClass="headerClass"
         footerClass="footerClass" rowClasses="rowClass1, rowClass2" binding="#{masterPublList.tablebindData}"
         id="tableEx1" styleClass="dataTableEx" value="#{masterPublList.lst_publication}" var="varlst_publication">
              <hx:columnEx id="columnEx3">
                   <hx:panelRowCategory id="rowCategory2"
                        styleClass="panelRowCategory"
                        value="#{varlst_publication.publCategory}" collapsed="true">
                   </hx:panelRowCategory>
              </hx:columnEx>
              <hx:columnEx id="columnEx2">
                   <hx:panelRowCategory id="rowCategory1"
                        styleClass="panelRowCategory" value="#{varlst_publication.publSubCategory1}">
                        <h:outputText id="text5" styleClass="outputText"></h:outputText>
                   </hx:panelRowCategory>
              </hx:columnEx>
              <hx:columnEx id="column1">
                   <hx:outputLinkEx id="linkEx1" styleClass="outputLinkEx" value="#{varlst_publication.publUrl}" target="_blank">
                        <h:outputText id="text3" styleClass="outputText" value="#{varlst_publication.publName}"></h:outputText>
                   </hx:outputLinkEx>
              </hx:columnEx>
              <hx:columnEx id="columnEx1">
                   <h:selectManyCheckbox disabledClass="selectManyCheckbox_Disabled"
                        id="checkbox1" styleClass="selectManyCheckbox" value= "#{varlst_publication.publLang}">
                        <f:selectItems value= "#{masterPublList.lst_lang}"/>
                   </h:selectManyCheckbox>
              </hx:columnEx>
         </hx:dataTableEx>
                   Thanks in anticipation

    Hi Naamkeek,
    Per my understanding that you have added the Expand All and Collapse All button in an drill down report by adding the "Go to report" action, now you got the report always refresh and return to the first page, right?
    I have tested on my local environment and can reproduce the issue, no matter whether to add two buttons or using the parameter to do the Expand All and Collapse All, it is always return to the first page.
    Gernerally, SQL Server Reporting Services does a postback while clicking a expand/collapse icon. SSRS re-renders reports because it need to regenerate the pages to fit the defined width & Height. That is why SQL Server Reporting Services reloads
    the whole report.
    This is by design. And, currently, we are not able to turned it off.
    I would suggest you submitting a wish at
    http://connect.microsoft.com
    If the service requests frequently, we may include it in the next release.
    Appreciate your understanding, and if you have any more questions, please feel free to ask.
    Regards
    Vicky Liu

  • Expand/Collapse all in OneNote 2013?

    Once I've created a hierarchy in OneNote, is there any way I can collapse all or expand all in a single click, or am I destined to have to click more than 100 [+]  when I want to see everything? Thanks.

    Hi,
    Do you mean you want to expand all collapsed outlines by single click? If so, we can use Alt + Shift + 0 to expand all levels in OneNote. Some related keyboard shortcut key are listed below:
    Show through Level 1.
        ALT+SHIFT+1
    Expand to Level 2.
        ALT+SHIFT+2
    Expand to Level 3.
        ALT+SHIFT+3
    Expand to Level 4.
        ALT+SHIFT+4
    Expand to Level 5.
        ALT+SHIFT+5
    Expand to Level 6.
        ALT+SHIFT+6
    Expand to Level 7.
        ALT+SHIFT+7
    Expand to Level 8.
        ALT+SHIFT+8
    Expand to Level 9.
        ALT+SHIFT+9
    Expand all levels.
        ALT+SHIFT+0
    Increase indent by one level.
        TAB
    Decrease indent by one level.
        SHIFT+TAB
    Expand a collapsed outline.
        ALT+SHIFT+PLUS SIGN
    Collapse an expanded outline.
        ALT+SHIFT+MINUS SIGN
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • JTree Expand All & Collapse All...

    Hi All,
    i hv two buttons "Expand All" & "Collapse All". If i press "Expand All" i should expand all the nodes in the all the root nodes(JTree).
    If i press "Collapse All" i sh collapse all the entries in the JTree.
    Is there any way to acheive this.
    Thanks
    ss

    Hi!
    You can try these methods where treeRoot is the root node of the tree:
    * Collapses the function group tree.
    public void collapseAll() {
    for (int i = treeRoot.getChildCount(); i > 0; i--) {
    tree.collapseRow(i);
    * Collapses the function group tree.
    public void expandAll() {
    for (int i = treeRoot.getChildCount(); i > 0; i--) {
    tree.expandRow(i);
    /Malin

  • 2950 spanning tree issue

    Here is the problem we are having , we have a 2950 hooked to a 6509 hybrid dist box with approx 90 vlans on it . We hook up a new 2950 and we get the following message, Dec 21 19:47:45.116: %SPANTREE_VLAN_SW-2-MAX_INSTANCE: Platform limit of 64 STP instances exceeded. No instance created. Ok , I know about the spanning tree issues with the 2950 only having limited PVST instances . But up at the dist side we have "manually pruned off all but 5 vlans on the trunk feeding this 2950 with the "clear trunk" command . I thought manually pruning off the vlans from the trunk would eliminate this problem , maybe i have a misunderstanding of how this works. Also the message on the 2950 complains about it only having 64 instances of spanning tree yet when you do a "show vtp status it says it supports 250 instances locally so whats up with that , 2950 running 12.1.22EA4 . So I guess I'm asking is there any way around this for the 2950 . Also in client/server mode do you have to manually prune off the vlans on both the server side and the client side ??

    Hello Glen,
    I guess instead of manually pruning the VLANs off the trunk, you could also try and enable VTP pruning globally on the 6509 (set vtp pruning enable). I assume you have the 6509 configured as the VTP server (set vtp mode server) ?
    I am not sure if CatOS and IOS defaults to the same VTP version, can you check this (with 'show vtp domain' for CatOS and 'show vtp status' for the IOS switch) ?
    Also, in a purely IOS environment, manually pruning VLANs off a trunk requires doing that only on the server side, but with a mix of CatOS and IOS, it might have to be done on both sides, you might want to give it a try and use the 'switchport trunk allowed' command on the 2950 as well...
    Regards,
    GP

  • How do I collapse all uncollapsed folders

    I have an issue that I have tried to tackle a couple of times as I learn to optimize my mac. Advance apologies to anyone that has helped in the past but I can't seem to get this to work.
    I would like to be able to collapse all folders throughout a Finder window. By which I mean to say I wish to select a folder and uncollapse all the contents and then do this to a number - say twenty - of other folders and all their subfolder contents.
    Right now I have to collapse each folder individually - which means I have to do this twenty times to get back to a fully collapsed state.
    I seem to have tried CMD, OPTION, CTRL, SHIFT and a number of other keyboard commands while collapsing one of the folders but it only seems to collapse the one folder.
    It doesn't seem like proper form to have to either run around and close each folder individually or alternately to close out of the Window completely and have to then find where you were at to open a new Finder window with all contents collapsed....
    Thanks for any help.

    Hi. Many thanks. I think this is where things broke down last time I tried to get this to happen and I got sidetracked with other issues.
    While holding down the option key, press the right arrow button.
    this expands all the folders.
    I get this behavior.
    The when you're ready to close those folders. Hold down the option key and press the left arrow.
    I don't get this behavior...
    Anyone have any ideas? It is actually much more important for me to get the second behavior explained here than it is to get the first.
    Thanks Chop....

  • How to view all the issues in the same page in OTM

    HI,
    I have created 20 issues in OTM but I am able to see only 10 issues at a time.So how can I view all the issues in the same page.

    Hi,
    Login to OTM then you can see "tools"in the top most right corner click on that and select options.In the options popup window select "Tree preference" change the number of nodes.
    Regards
    Rajesh

  • Syncing iPod to Selected Playlists: How to collapse the tree

    My iTunes library is much larger than my 60GB iPod, so I have two ways to pare things down when I download to the pod.
    1) I can uncheck things in playlists that I don't wish to load on my iPod. This is what I do.
    2) I can check the "Selected Playlists" button and then check the playlists I wish to download. I'd like to do this, but it's a little hard to get around a problem:
    Whenever I connect my iPod and go to the "Music" tab that controls how I download, my "tree" of playlists is always fully expanded (I have folders within folder). Of course I can manually collapse the tree, but this operation doesn't appear to be "sticky". As soon as I apply changes, or simply reconnect the iPod, there's the tree fully expanded again. It's a large tree and this is rather a large pain.
    So does anyone know how I can collapse the tree (or pieces of the tree) and have it stick? Many thanks.

    You might provide feedback to Apple regarding this issue, so they know you care.
    I too, would assume that the state of the "tree" should be remembered, or at least, it should be in the same state than in the sidebar when you connect you iPod.
    http://www.apple.com/feedback/itunesapp.html
    Frédéric

  • Javascript to Expand/Collapse all grouped list items(2010 method no longer working)

    I have the below little piece of javascript that used to work in 2010(with plus.gif/minus.gif)
    <html>
    <head>
    <script language="Javascript" type="text/Javascript">
    function collapseGroups() { 
    $("img[src*='spcommon.png']:visible").parent().click(); 
    function expandGroups() { 
    $("img[src*='spcommon.png']:visible").parent().click(); 
    </script>
    </head>
    <body>
    <input type="button" id="btnExpand" onclick="expandGroups()" value="Expand All">
    <input type="button" id="btnExpand" onclick="collapseGroups()" value="Collapse All">
    </body>
    </html>
    This however does not work and results in a lot of "clicks" occuring on the site, wherever the spcommon.png is present(which is a lot)
    Has anyone hit this issue before?
    Regards
    Pieter
    PS. Works on 2010 with plus/minus.gif.
    Regards, Pieter
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Hi,
    In SharePoint 2013, we can add the following code into a Content Editor Web Part to achieve it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script language="Javascript" type="text/Javascript">
    function collapseGroups() {
    $("img[id^='img_']").click();
    function expandGroups() {
    $("img[id^='img_']").click();
    </script>
    <input id="btnExpand1" onclick="expandGroups()" type="button" value="Expand All" />
    <input id="btnExpand2" onclick="collapseGroups()" type="button" value="Collapse All" />
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Transferring Album Art from a Mac to a Windows PC

    I have iTunes on both my Mac and Windows PC- with the same library on both. I found a great utility called Curator that found all my missing album art on the Mac, but it only works on the Mac, not the PC So after spending a day finding all my missing

  • Noob Needs Help - Importing Html Pages into "My Site"

    Greetings I am sure this is a noob question that may have been asked, but I couldn't find it by searching so here goes. I jumped right into Dream Weaver, following an online tutorial... and have a decent webpage but I must have skipped some steps or

  • Can't change password

    I have my imac directly wired to the base station and my ibook via the airport card. Sudenly the password for the ibook to connect to the network doesn't work. I used Airport admin Utility and reset the password then updated but still the ibook canno

  • Different tax code for condition type

    Hello Gurus, I have defined a calculation schema for import POs. I would like to automatically determine the default tax code on the invoice verification depending on the condition type, for examle: Cond type                     Tax code ZF01 Freight

  • Broken OUTPUT? Strange

    Why is the output coming BROKEN for the last <SDIEXTRACT>?? Any idea why this is happening? If I remove SDI tag,it comes properly. <?xml version="1.0" encoding="UTF-8"?> <SDIEXTRACT> <SDI> <REFERENCE>AHA</REFERENCE> </SDI> </SDIEXT RACT>My code is: C