Binding same xml node to the multiple tables

altrue990

26-07-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

_Bruce_Robertson

MVP

26-07-2018

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

Answers (0)