1 Reply Latest reply on Nov 12, 2008 3:01 PM by ntsiii

    Tree control loop through nodes

    josh_aries Level 1
      Hi All,
      I have a tree control. I want to loop through the nodes and add all the nodes to an array collection.

      How do I do it?

      Thanks in advance;
      Josh
        • 1. Re: Tree control loop through nodes
          ntsiii Level 3
          It depends on the data type of the dataProvider.

          If XML, then myXML.descendants(); will return an xmlList of all nodes. You could loop over the XMLList and build an ArrayCollection

          If the dataProvider is a collection, then you will need a recursive function to process the dataProvider.

          Tracy