on 02-06-2011 10:42 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.