Expand my Community achievements bar.

Getting the sub-nodes of a bound field

Avatar

Level 1

Hi I'm not sure if I'm explaining this properly or not but here is what I want to do....

I have a table that is populated from and XML file. The number of rows is determined based on the number of records in the XML file. That works.

Now what I want to do is be able to click on each row Title and populate a listbox with a number of items that are child nodes of the table row (sub_items).

My XML looks like this

<root>

     <row>

          <title>Row 1 Title</title>

          <sub_items>

               <item>Item 1</item>

               <item>Item 2</item>

               <item>Item 3</item>

          </sub_items>

     <row>

</root>

How can I do this through javascript? Can I refrence the XML DOM via Javascript and find the corresponding sub nodes?

1 Reply

Avatar

Former Community Member

You can do it that way but you shodul be able to do it through simple binding expressions. Can you post your form and sample data so we can give it a try?

Paul