Expand my Community achievements bar.

How do I enable users to add tables at runtime?

Avatar

Level 1

I would like to allow a user to be able to add tables to a pdf at runtime. To be clear, I have a table created and wish to add a set of buttons that allow a user to expand or add/subtract rows to a table with a button click, or similarly, add a complete table at runtime. I have figured out how to add rows but cannot get the table to work. I am using Adobe LiveCycle Designer ES2 on a Dell Latitude E6510 laptop with 32 bit Windows 7 pro.

1 Reply

Avatar

Level 10

There are a couple of things you can do.

You can repeat a table like you are repeating the table rows. So if you want multiple copies of the same table you can use the instance manager to add more. Click on the table and go to the Object>Binding tab and click "repeat table for each data item".

_table1.addInstance(1);

(the underscore is a shortcut to the instance manager)

You can have pre-built tables that are hidden and have them appear on a button click, etc.

table1.presence = "visible";