cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Rows to a table dynamically

Former Member
0 Kudos

Hello,

I have an Adobe Form with a Table. I want to add new rows to the Table on the click of 'Add' button each time at runtime . How can i achieve the same?

I know this has been asked before .Also as in the following thread:

but I am not able to find the addInstance() method to do the same.

Please help.

Any help would be highly appreciated.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

BenPatterson
Participant
0 Kudos

Hi Developer,

working with the LiveCycle Javascript DOM can be tricky - you can find documentation on this on the adobe developer web site (http://kb2.adobe.com/cps/333/333249.html).

There are also some great sample code in LiveCycle Designer that you can use as a starting point if you like. Go to the Object Library Palette and select the Custom group. In here there is a 'Subform Instance Controls: Add' Object that you can put into your form. Look at the Javascript in the component and make the required changes to get it working for your scenario.

Let me know if this helps,

Ben.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In Adobe LifeCycle Designer, usually it will list all the methods and properties when you enter a '.' after any object. But you will not find method 'addInstance()' for 'instanceManager'.

Just type 'instanceManager.addInstance(1)' and test your application. It will work.

Strange..... isn't it?

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Finally it worked. Thanks