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

Adding new rows and binding them

Avatar

Level 3

I have a form with several tables.  Much of the information in the different tables is the same.  The number of rows in each table will depend on the data entered by a user.  If I add a button to allow users to add a row to Table 1, is there a way to simultaneously add a row to the other tables and then bind the new row in Table 1 to the new rows in the other tables?

Would it be easier to create the rows now so I can bind them, and then add script to make any blank rows invisible?

Thank you for your help.

4 Replies

Avatar

Level 10

Hi,

It can be done, but involves a bit of scripting.

Here is an example: https://acrobat.com/#d=z9JRAb-7bKkdBwRHM4EHGw

Global binding wont work.

Check out the script in the add/delete buttons in the table on page 1. These also add/delete rows in the second table on page 2. Next look at the script in the calculate event of the objects in the table on page 2. These match the values in the corresponding instances of row1 in the table on page 1.

Hope that helps,

Niall

Avatar

Level 10

Here is another sample. Mine copies the last row of table 1 and puts the content into a new row in table 2.

Steve

Avatar

Level 3

Thank you Niall and Steve.  Your examples are wonderful!