cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive form with buttons and dynamic Table

Former Member
0 Kudos

Hi,

I am trying to make my first dynamic form in NWDS as a part of web dynpro and I use Table and 2 buttons. One button to add a row and one to remove row from table. What settings/properties should have a table, buttons and this form because now when I press buttons nothing happens. I have wrote a JaveScript for buttons (from adobe help), in PDF Preview view there are no errors but nothing works. Any ideas, tutorials, solutions, anything what might be wrong or what is not set yet?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pavel,

i have found a solution on the help of Adobe Live Cycle Designer at self. Search for dynamic table with button there is a example and a good explanation how it works.

For add a new row this works fine:

TABLE.ROW.instanceManager.addInstance(1);

TABLE is the name of the Table form. ROW is the form where you would add the row.

If you want remove a line so this code works:

TABLE.ROW.instanceManager.removeInstance(TABLE.ROW.index);

The Button to remove the line muss be in ROW form

i hope it helps you

regard

Markus

Former Member
0 Kudos

I made my form using this help step by step and buttons are still not working. Maybe JavaScript is blocked somewhere but I have no idea where to look for this lock. It is also strange that when I'm writing script i get help list Tabel.->Row.->instanceManager. -> and here is no add/removeInstance function availabe on the list. Is this normal?

Former Member
0 Kudos

I don't konw how to explain that, but problem is solved. I was just looking through all menu items, without making changes, I was pressing everywhere OK and now Javascrips are working...

Former Member
0 Kudos

Unfortunatelly I have the same problem. There is no add/remove instance method in the list after instanceManager typing.

Can anybody explain it??

Former Member
0 Kudos

Hi Pawel,

please check this[Video|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/927d8c3c-0a01-0010-57b4-e89f505e2bff]

regards,

Former Member
0 Kudos

Thanks, but I am interested in how to do this using Adobe Interactive form. I tried to do such table using SAP Adobe Livecycle Desiger in my NWDS and there I get this problem. Sorry, I should have more precisely ask my question.