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

Similar Messages

  • Expand all and collapse all in page

    Hi all,
    I need to implement* expand all and collapse all *in a custom page where I have some Link beans generated dynamically to show the allowable responsibilities.I have added the link beans and respective hide show regions in a stack layout.How to implement expand all/collapse all for this hide show in the page.
    If I'm not clear about my requirement please let me know.
    Thanks ,
    Krishna Priya Bandyopadhyay

    Hi Krishna,
    Are your hide/show items within a table or separate hide/show regions?
    Thanks,
    LC

  • Expand all and collapse all functionality in adf accordion

    Hi
    I need to implement a functionality where in there are two links "Expand All" and "Collapse All" on clicking these links the accordion should behave accordingly.
    Was wondering if this feature is possible by using <af:panelAccordion> component. Or is there any work around for this? Would using jquery be better for this fuctionality.
    Some help in here asap is appreciated.
    Thanks

    You should ask this in the ADF forum: JDeveloper and ADF

  • 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

  • Post RH 9 Upgrade Expand All and Collapse All not working.

    After upgrading to RoboHelp 9 from 7 - the Collapse All and Expand All is not working.  I am taking over after attending a RoboHelp 9 Training Class a little over a week ago, so any help would be appreciated.

    Hi,
    What is your output? Where are the show/hide buttons placed: In the topic or in the toolbar? You're using RoboHTML right?
    Did you use any kind of twisties in your RoboHelp 7 project? The show all hide all buttons are controlled by a custom script and I'd like to know which method you are using. (If you know which.) See also http://www.grainge.org/pages/authoring/twisty/twisty.htm
    If you're not sure which method you are using, can you post the HTML of the show/hide all button/link?
    Greet,
    Willam

  • Adding a link to expand and collapse all DHTML drop downs

    Hi, can anyone help me adapt the "Skinny on Skins" example "Add a Toolbar button to expand and collapse all DHTML drop downs" so that it will work with just a simple HTML link in RH8, instead of being attached to a custom skin button?
    The example looks like this:
    Step 1. Open the Skins Editor for the skin where you want to add the button.
    Step 2. After the preview loads into the window, ensure that the Toolbar tab has focus, then click the plus symbol. The Custom Toolbar Item dialog should display.
    Step 3. Type the Item Name (This is simply an internal reference for the button).
    Step 4. Type the Text (This is the text that will be seen by the end user. The field must contain something. So if you don't want any verbiage to display for your toolbar item, simply type a space.)
    Step 5. Choose your Image Options, then click the Action tab.
    Step 6. Click the JavaScript option button.
    Step 7. Enter the following code in the OnClick field:
    javascript:toggle()
    Step 8. In the JavaScript area, ensure the Inline JavaScript option button is selected, then click the edit (Pencil) icon located to the right.
    Step 9. Enter the following code in the Inline JavaScript dialog
    var show = "false";
    function toggle() {
    parent.frames[1].bsscright.focus();
    var arrayofDivs = parent.frames[1].bsscright.document.all.tags('DIV');
    if (show == "false") {
    for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "block";}
    show = "true";}
    else {
    for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "none"; }
    show = "false"; }
    Step 10. Click the OK button to close the Inline JavaScript dialog.
    Step 11. Click the OK button to close the Custom Toolbar Item dialog.
    Step 12. Click the OK button to close the Skin Editor.
    Step 13. Generate WebHelp via File > Generate > WebHelp and ensure that you have the new button selected with a check mark. This will probably require stepping through some screens to see the place where you can select it.
    Many thanks
    Jonathan

    Hi again
    I want to use it in the header of one of my Master Pages, so it will only be created/maintained once. Not all my pages have drop downs in so rather than have a toolbar button available for every page, I was trying to be a bit cuter by having two Master Pages - one for normal pages and one for pages with drop downs in.
    I'm no javascript expert so I'll see if one of my developers can help.
    Thanks anyway
    Jonathan

  • I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone an i have internet and all other functions working on my computer

    I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone and i have internet and all other functions working on my computer

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents—the text, not a screenshot. I know the report is long. Please post all of it anyway.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Select all and deselect all in table control

    Hi experts,
        I want to make the select all and deselect all options in my table control.
    But i can't able to do that one. Kindly suggest me how to do that one.
    one more thing, if i select some rows in the table control, and press save it should be saved in some other table. how can i implement that one.
    Waiting for ur reply.
    Regards...
    Arun.

    Hi Arun,
    In the context node that you bind to the table, set the cardinality as 0..n and selection as 0..n. In the UI element Table, set the property selectionMode as 'multi'. Then a toggle button for select/deselect all will appear automatically in your table. You can see it in the top left corner.
    For your second question, after selecting the elemets and pressing 'save', in your event handler, do a get_selected_elements( ) on your node. This will return you a set of context elements. Loop through each element and do a get_static_attributes to get the rows. Then you can append these rows to another internal table and bind it to the context. Bind your second table to this node. If the two tables are in different views, the context nodes need to be present in the component controller and mapped to the views.
    Hope this helps.
    Regards
    Nithya

  • Link symbol (Hand symbol) in " Show all" and "Hide all"

    Hi peter,
    With respect to the same topic posted by me, can u help me in
    one more requirement (definitely simple for u)
    When i try to click these show all/hideall buttons (the hand
    symbol) should appear which usually appears when we click any
    link.....how this can be done........

    Hi peter, apart from adding the cursor pointer (per ur
    guidance), i also add some "screen tip text" (For ex. "Click to
    view instructions of all fields)...i included the tag <a
    title="Click to view -----------">
    i'm getting the same screen tip text for both "Show all" and
    "Hide all" buttons (that is obvious)
    If i click "Hide all" button, i want the screen tip text as:
    "Click to hide all instructions"..............probably i need to
    change this in the "showhide.js" (how to do this).............can
    you help me to achieve even this :-) Thankx a lot in advance :-)
    Note: You may thing that this screen tip text is not required
    for these two buttons (as it is self-explanatory) (I too
    know)..........however, i can use this method in any other
    requirement...........

  • My music is completely messed up: many songs shortened to 3:01, many songs in different versions. Should I delete all and reimport all my purchases? Or is there a more elgant way of cleaning the media center?

    My music is completely messed up: many songs shortened to 3:01, many songs in different versions. Should I delete all and reimport all my purchases? Or is there a more elgant way of cleaning the media center?

    I think you should just rebuild your library.
    Clear it out, then drag all the song files back in. You'll lose your ratings and playcounts, etc but I don't see what else you can do.

  • Select  all and dselect all can any body provide a code for these buttons

    hi
    i have taken 4 buttons for select  all and dselect all  and sort up and sort down can any body provide a code for these buttons.
    thanks

    hi,
    Refer this link...
    code for select_all and deselect_all in modulepool

  • Must a EntityBean map with data table?

    I know Not every data table will map with Entity bean
    but must a EntityBean map with a datatable?
    rgds

    Ofcourse Not, EntityBean Just A style of Bean,
    We declare something as EntityBean because it perform some action like a Entity
    For Example,A Man Contain some attribute, or A File with some attribute,
    usually we have store this in the database ,so EntityBean Usually map with data table.
    but you can also store the data in the file format as you like,you can control it in the BMP model
    in my opinion ,Entitybean is the object base on the attribute , the Sessionbean is the object base on the action with the user.So we can distinguish them��:-)

  • Deleted and adjusted the Master data table, sid table and text table

    Deleted and adjusted the master data table, sid table and text table of an zinfoobject after removing and adding attributes to that zinfoobject and was trying to activate it and system was giving me messages that cannot activate infoobject something like this.
    So, i deleted and adjusted the master data table, sid table and text table. Since then getting messages right after executing the query because in that query that infoobject is getting used.
    So the messages i am getting is:
    SID 9 for characteristic Zinfoobject could not be converted CL_RSDM_READ_MASTER_DATA->_SIDVAL_DIRECT_READ2
    System error in program SAPLRRK0 and form MEGA_SORT_M_02-02- (see long text)
    Please help me in fixing this whole thing.
    Thanks
    SAPBW

    SAP BW,
    After adjusting your Master Data IOBJ and deleting and reloading the data - run a change run to adjust the references to the SIDs and then see if your query runs - run program RSDDS_AGGREGATES_MAINTAIN from se38 and select your IOBJ in the next screen..
    Arun
    Assign points if useful
    P.S I did notice that in your earlier post for the same topic - you have had 12 answers / suggestions Please maintain only one thread as previously suggested..
    My 0.02
    Message was edited by:
            Arun Varadarajan

  • Expanding and Collapsing All Nodes in a TreeByNestingTableColumn

    Hi Experts,
    I'm using NWDS 7.0.18.
    I have a table with TreeByNestingTableColumn (master column).
    The child nodes are recursive nodes and are loaded at runtime with an action onLoadChildren when clicking the master column. My question is, when the hierarchy is in its initial state, only the root node is loaded into the table. But I want to add functionality for expanding all nodes in the tree. Is there a way to achieve this, I'm a little confused because the Hierarchy children havent been loaded yet.
    Any suggestion will greatly help.
    Regards,
    Kunal.

    Hi Kunal,
    I got your problem.
    To expand & collpase all the child nodes please modify the code as below.
    Create two methods exapndAll &  collapseAll and call these two methods in existing button actions.
    as below.
    public void expandAll( com.sap.tut.wd.treetable.wdp.IPrivateTreeTableView.ICatalogEntriesNode node )
        //@@begin expandAll()
           for (int i = 0; i < node.size(); i++) {
         node.getCatalogEntriesElementAt(i).setExpanded(true);
         if(node.getCatalogEntriesElementAt(i).getIsLeaf()==false)
              expandAll(node.getCatalogEntriesElementAt(i).nodeChildCatalogEntries());
        //@@end
    public void collapseAll( com.sap.tut.wd.treetable.wdp.IPrivateTreeTableView.ICatalogEntriesNode node )
        //@@begin collapseAll()
         for (int i = 0; i < node.size(); i++) {
         node.getCatalogEntriesElementAt(i).setExpanded(false);
         if(node.getCatalogEntriesElementAt(i).getIsLeaf()==false)
              expandAll(node.getCatalogEntriesElementAt(i).nodeChildCatalogEntries());
        //@@end
    public void onActionCollapseAll(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCollapseAll(ServerEvent)
        collapseAll(wdContext.nodeCatalogEntries());
        //@@end
    public void onActionExpandAll(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExpandAll(ServerEvent)
        expandAll(wdContext.nodeCatalogEntries());
        //@@end
    We are invoking the methods recursively to expand/collapse all the child nodes.
    This works.
    Regards,
    Charan

  • IGS graph with data table

    Hi all,
    I'd like to create an image of a graph with a data table below that contains the data displayed by the graph.  I know this is possible as of SP 8 of IGS 6.40, but I can't find anywhere any documentation on how I can pass this on to the Chart Element of the Graphics extension.
    Does anyone know what I should put in my custom XML or any other way of obtaining this result?  Any pointers to documentation that could get me on the right track would also be appreciated.
    Thanks,
    Tim

    Hi Kai,
    I had indeed seen that note about BW, so I thought the IGS was capable of doing it. I just had to do a similar call as BW.  Too bad this isn't supported.
    Anyways, thanks a lot for your answer.  I won't waiste my time looking for a way to do this anymore now.
    Thanks,
    Tim

Maybe you are looking for