Expand my Community achievements bar.

Global binding with duplicate, dynamic tables

Avatar

Level 1

Hi there,

Hope someone can give me a hand. I have a dynamic form that contains an invisible duplicate so that there will be two copies printed - one for the form filler and another for another dept. Only one field on the form changes on each copy -- the copy indentifier.

I have placed global binding for all fields on the "visible" form, so that the data will be ported into the invisible copy. However, there are two dynamic tables where the fields in the rows simply copy whatever is placed in the first row.

How do I (in the XML or Javascript) create a link so that each row's fields can contain different data and be copied to the invisible version?

Thanks in advance for your help.

1 Reply

Avatar

Level 10

Yeah global binding won't work on repeating elements, you need to write a script to loop through the table and copy the data to another table.

Check out this sample:

http://www.assuredynamics.com/index.php/portfolio/duplicating-table-data/