Expand my Community achievements bar.

Repeating entire table

Avatar

Level 1

Hi

I have a table, that is wrapped in a subform, that I would like to make repeating. I realize that I can use the addinstance, but am wondering if anyone has the scripting to repeat an entire table?

3 Replies

Avatar

Former Community Member

As far as I can tell, adding instances of a table is exactly the same as adding instances of a subform.  Just set the table to "Repeat for each data item" in the binding tab, then script a button (or whatever) with

_Table1.addInstance(1);

xfa.form.recalculate(1);

Avatar

Level 1

Search for and download LiveCycle Designer Scripting Basics.  Then on page 110 you can see how to do this.  The other reply is essentially correct.  But if you don't have this reference downloaded already, it is a great help and has helped me over lots of hurdles.

Avatar

Level 1

This is great advice. I will do it shortly. Thanks!