This discussion is archived
4 Replies Latest reply: Jun 28, 2012 1:56 AM by 427386 RSS

"Lazy" loading tree nodes with custom TreeModel

791757 Newbie
Currently Being Moderated
Hello --

I have a RichTreeTable that uses a custom TreeModel that is built recursively from the result of a connect-by query. This method works fine for smaller data sets, but there are some that have several thousand nodes. What I would like to be able to do is have only the first two levels of the tree populate, and then dynamically populate the child nodes when the user selects them. For example if you had a tree that was based on countries, I'd only want the "country" and "states" to load initially. If the user selected a "state" only then would the "cities" load and so on.

Is there a way to direct the framework to fetch in this manner, or do I need to redesign the way my tree is constructed.

Any help is appreciated.


JDeveloper 11.1.2.1.0

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points