4 Replies Latest reply: Dec 28, 2012 5:58 PM by 980847 RSS

    Expand-all, collapse-all in a table ??

    980847
      I am using Jdeveloper 11.1.2.3.0

      I have a table inside a table. How do i use Expand-all,collapse -all button to make it work like a tree??

      Could some one pls help me ?

      Edited by: 977844 on Dec 28, 2012 11:38 AM
        • 1. Re: Expand-all, collapse-all in a table ??
          Timo Hahn
          How about using a tree table?

          Timo
          • 2. Re: Expand-all, collapse-all in a table ??
            980847
            I need to make a fix in this requirement.

            Here is the structure of the layout
            af:iterator
            Showdetailheader
            Table1
            af:Iterator
            Showdetailheader
            Table2
            af:iterator
            showdetailheader
            Table3

            So far what I have done was, In the showdetailheader disclosed property I am setting up a boolean variable which is set to true or false from a managed bean. when they click "expand all" button the boolean variable is set to true and then I am refreshing the
            showdetail header. This works fine when I dont make any manual collapse/expand in the showdetailheader. After I made the manual changes even after I click expand all button that particular manual change I did does not expand.

            Could some one give me some idea like how to make the expand all/collapse all works in this scenario ???
            • 3. Re: Expand-all, collapse-all in a table ??
              Puthanampatti
              may be try with RichShowDetailHeader & RichPanelHeader.....I never tried this.

              RichShowDetailHeader richShowDetailHeader = getRichShowDetailHeader();
              for (UIComponent child : richShowDetailHeader.getChildren())
              {
              RichPanelHeader rph = (RichPanelHeader)child;
              rph.setDisclosed(true(rph));
              }
              • 4. Re: Expand-all, collapse-all in a table ??
                980847
                Thanks a lot Puthanampatti. Actually have tried similar kind of code. Will try yours and post it