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

How to add rows in nested tables (JavaScript)

Avatar

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Markus_O_
Level 1

05-04-2018

Hello,

I made my first steps with LiveCycle Designer ES2 and tried to create a form containing some tables and nested tables. In the "standard" tables I managed to add lines using Java Script in this way:

Formular1.TF_Liste.tbl_Listendaten.Zeile1.formAddRem.btnAdd::click - (JavaScript, client)

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

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

xfa.form.recalculate(1);

I also managed to remove them in a similar way. The button "btnAdd" is inside a form in the last cell of each row.

Now I tried the same for nested tables:

Formular1.TF_Kopf.tblKopfdaten.Zeile8.tblTeilnehmer.Zeile1.formAddRem.btnAdd::click - (JavaScript, client)

rowNum = this.parent.parent.index;

rowNum = rowNum +1;

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

xfa.form.recalculate(1);

It does not work at all, but I have no idea why. I tried to find a solution here... without success. I also tried to put the nested table "tblTeilnehmer" in a form first, with the same result.

How can I add more rows like "Zeile1" in the nested table, using Java Script?

Best regards

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Markus_O_
Level 1

05-04-2018

I just found the solution: I missed to check "Repeat Table for Each Data Item" for the row I wanted to insert...

https://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000246.html

Answers (5)

Answers (5)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

05-04-2018

Hi Markus,

Is it possible for you to upload your form somewhere, like google docs or whatever and post a link.  It should be easy enough but will depend on the structure of your particular form.

Regards

Bruce

Avatar

Avatar
Level 1
kimf24288811
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
kimf24288811
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
kimf24288811
Level 1

04-12-2018

Can you explain how you added rows to your table? I think this is what you were explaining you accomplished.

I am on adobe acrobat pro and am making an editable document. This is the results section pictured below. I want to make it so that I can choose how many results lines are in the document because in some cases there is only 1 result and in others there are 5. Is there a way to have a + button that allows the user to add as many result lines as needed?

Screen Shot 2018-12-04 at 8.58.16 AM.png

Avatar

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Markus_O_
Level 1

05-04-2018

I am sorry. It was the first one, after several tries, that was not blocked at work.

I put the file on my dropbox at home: https://www.dropbox.com/l/scl/AAC6RjU6cj9r0Qk9Z0kDh6UCbtrX5fhl9SE

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

05-04-2018

That's a very dodgy website, what am I meant to click to download the file without all the gambling and casual dating tabs popping up.

Avatar

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Markus_O_
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Markus_O_
Level 1

05-04-2018

Hi Bruce,

thank you for your feedback. An example is available here: https://file.town/download/rl5pfnghtxumd47la6uxzymqj

I am really curious for the solution, as I tried lots of different variants...

Best regards
Markus