Expand my Community achievements bar.

SOLVED

Binding same xml node to the multiple tables

Avatar

Level 4

I have a dynamic form that has two tables, each related to the same data points. Here is an example of the XML instance:

<root>

  <ca>

    <name>Joe</name>

    <selected>Maybe</selected>

  </ca>

  <ca>

    <name>Suzie</name>

    <selected>No</selected>

  </ca>

  <ca>

    <name>James</name>

    <selected>Yes</selected>

  </ca>

</root>

The first form binds to the $.name, and the second binds to $.selected. The form will only render the first table, but not the second. I assume this is because all the <ca> nodes were consumed when binding against the first table. Is there a way to do this?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,  You are correct, that you can't bind to a repeating XML instance twice.  You will have to use JavaScript to keep them in sync.  There is an example in this blog Duplicating subform structures

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,  You are correct, that you can't bind to a repeating XML instance twice.  You will have to use JavaScript to keep them in sync.  There is an example in this blog Duplicating subform structures