1 Reply Latest reply on Jul 18, 2013 3:13 AM by Jorge Rimblas

    Hierarchical list question


      I have a hierarchical list (not tree list) defined under applications shared components.  The idea is to use this for navigation.


      Defined a zero page that has left and right panes.  In the left pane the list is used for navigation.


      How do I preserve the expanded list between different page loads?


      Currently when I expand and choose an item from the hierarchical list a certain page loads.  But the loaded page has the hierarchical list collapsed.  Once the list is expanded, How can I preserve the state between page loads?

        • 1. Re: Hierarchical list question
          Jorge Rimblas

          The exact solution depends on the specific theme and template used.

          But, here is one javascript general idea solution.

          Your list probably opens with some class (this is where knowing the exact template is key). Lets say it adds the class "open" when you click on something to expand.

          Then lets assume that the current element, the one selected gets a "selected" class added.

          If this where the case, then you could find the selected element.


          Then you want to "roll-up" to the parent and add the class of open.


          Again, the assumption here is that all the main/parent elements have a class of "main"

          You would do this on every page load.


          Another approach is to just render your list with a PL/SQL Region, and do something similar as above, but that sounds like a lot of work.