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

Remove a table row with a button in Livecycle Designer ES3

Avatar

Avatar
Validate 1
Level 1
Imgoodtogo
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Imgoodtogo
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

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

10-11-2015

I have a table in Livecycle that has 16 static rows. More rows can be added or removed dynamically at the end of the table.

I would like the user to be able to delete one of the static rows if they want however I can't get the script to work.

I have a button at the end of the row with the script:

driverTable._Row2.removeInstance(true);

I have tried various forms of this script such as not using the shorthand for "instanceManager", leaving "true" out, etc. Where it says "Row2" I would use this script for the subsequent rows, Row3, Row4 etc.

I have tried it with the initial count set to 1 and tried it set to zero. The table is in a flowable subform.

Can anyone help?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

10-11-2015

HI there,

A row cannot be set to 0 instances, if you want to remove a row, you will have to hide it using its presence property...

But if you are using 1 table for 16 different rows, why are you not setting the table with dynamic rows and have an initial count to 16, then you could remove any rows you want with the removeInstance method

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
Imgoodtogo
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Imgoodtogo
Level 1

Likes

0 likes

Total Posts

26 posts

Correct Reply

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

10-11-2015

That's brilliant.

I hadn't thought of doing it that way.

I just tried it and Voila! No problem.

Thank you so much for your response.