I have a DB of related hierarchical data that I am trying to
edit via a flex for, I have CF creating xml for the entire
structure but can't seem to figure out how to select a node based
on an xml attribute, I can loop thru the dataprovider.descendants
to find the node but can't find a way to use that to select the
corresponding node on the tree.
If possible I am also looking for how I could open the tree
to that selected node so it is visible.
These may be simple tasks, I am new to flex, but any help
would be greatly appreciated.
The unfortunate thing about trees is that the selectedItem
number corresponding to the children nodes changes depending on how
many branches are open., so simply looping through the dataProvider
isn't that helpful. Otherwise try using expandItem() and
expandChildrenOf(). If you have a single root node apply the later.
I haven't played with the tree much since beta days, so it might be
more well behaved than I remember.