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
BedrockMission!

Learn More

View all

Sign in to view all badges

Binding same xml node to the multiple tables

Avatar

Avatar
Boost 10
Level 3
altrue990
Level 3

Likes

10 likes

Total Posts

73 posts

Correct Reply

14 solutions
Top badges earned
Boost 10
Give Back
Validate 1
Boost 5
Boost 3
View profile

Avatar
Boost 10
Level 3
altrue990
Level 3

Likes

10 likes

Total Posts

73 posts

Correct Reply

14 solutions
Top badges earned
Boost 10
Give Back
Validate 1
Boost 5
Boost 3
View profile
altrue990
Level 3

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)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_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)