Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Binding same xml node to the multiple tables

altrue990
Level 4
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
_Bruce_Robertson
Correct answer by
Level 10
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
_Bruce_Robertson
Correct answer by
Level 10
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