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

SOLVED

Multiple Dynamic Tables on the same Form

robertr1124947
Level 1
Level 1

Still getting used to working with Adobe LiveCycle.  I am building a form that I want multiple dynamic tables included.  I added the first one and got it working thanks to some postings on this site.  I then went to create another the same way and this one doesn't want to add new rows like the previous one.  I copied and pasted the code in the "Add buttons" and made sure the same properties were set for each table and sub for, but no luck.  here's a look at the structure:

1342412_pastedImage_0.png

The code on the buttons:

var rowNum = this.parent.index + 1;

this.parent.parent.instanceManager.insertInstance(rowNum);

Any ideas, or need more information?

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

The rowNum is always 0 because the parent of cmdAddVul your referencing is the subform subAddVul not Row1.

Change you script into …

var rowNum = this.parent.parent.index + 1;

this.parent.parent.instanceManager.insertInstance(rowNum);

… or write just …

_Row1.addinstance(true);

View solution in original post

2 Replies
radzmar
Correct answer by
Level 10
Level 10

The rowNum is always 0 because the parent of cmdAddVul your referencing is the subform subAddVul not Row1.

Change you script into …

var rowNum = this.parent.parent.index + 1;

this.parent.parent.instanceManager.insertInstance(rowNum);

… or write just …

_Row1.addinstance(true);

View solution in original post