Multiple Dynamic Tables on the same Form

Avatar

Avatar
Validate 1
Level 1
robertr1124947
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
robertr1124947
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
robertr1124947
Level 1

06-11-2017

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

06-11-2017

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);

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
robertr1124947
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
robertr1124947
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
robertr1124947
Level 1

06-11-2017

Simplify...I like it.  Thank you