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

SOLVED

Problem Removing a Table Row Instance.

Avatar

Level 2

Hi All.

I will try and explain this as best possible.

I have a pdf form with a Table object on it.

The table has 3 columns and 2 rows. One header row, one empty row.

The cells in each column is a textfield which data binding is set to $record.data.mydata[*]

I also have 2 buttons on the form. One to ADD a new row to the end of the table and one to REMOVE the last row from the table.

When I open the form in Acrobat Pro, I can click on the ADD row button and it works. I save the file and the newly created row is still there when I open the file at a later stage.

Then when I click on the REMOVE row button, it removes the last row from the table perfectly. Bur then I save the form, close it, re-open it and the row I just REMOVED is still there.

Now here is the funny part.

When I change the textfields Data Binding to Normal, everything works 100% and the form can be saved without the row I removed. Change the Data Binding back to the $record thing and it does not save the form when I remove the row.

I am using LiveCycle Designer 8.0.

Thanks to all.

1 Accepted Solution

Avatar

Correct answer by
Level 4

You should leave the '$record' binding on the cells, just set all the aforementioned bindings to 'None'. Then if you import xml into the form, the table should grow as expected. Attached is sample xml for you to import into the form. You will notice the table grows nicely. The pdf must be saved as a dynamic pdf for this to work.

View solution in original post

0 Replies

Avatar

Level 4

Set the binding to 'None' on Row 1, Table 1 and page 1. I've just done that and it seems to be working now (if i understood your post correctly).

Avatar

Level 2

Hi.

Thanks. Yes you are correct. That does work.

But the problem is that a user can also choose to dynamically populate this field. They upload a comma seperated file. I then dynamically build xml from it which I then attach to the form to auto populate the table.

That is why I have to put the $record thing on each cell so I can populate it.

If I make the Data Binding Normal, is there another way to populate the table automatically?

Thanks

Avatar

Correct answer by
Level 4

You should leave the '$record' binding on the cells, just set all the aforementioned bindings to 'None'. Then if you import xml into the form, the table should grow as expected. Attached is sample xml for you to import into the form. You will notice the table grows nicely. The pdf must be saved as a dynamic pdf for this to work.

Avatar

Level 2

Man you are the KING.

It is funny how the simple things are always the most difficult.

Thanks again.