cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic table not working in WD4 ABAP

Former Member
0 Kudos

Hi,

I have been using the dynamic tables in Adobe Interactive forms(PDF) on Webdynpro for Java successfully. When I tried the same in WebDynpro for ABAP, the dynamic table is not working. i.e. when I click 'ADD' button, nothing happens(actually a row should be added to the table).

When i place the JScript code to display a message box in the ADD button, I am getting the message box, but a row is not getting added to the table.

Note:

The same form is working fine in the preview, the problem occurs when at runtime(when I deploy the WebDynpro ABAP application)

script used for adding a row to the table:

SubformTable.Table1.Row1.instanceManager.addInstance(true);

Expecting a solution form you...

Thanks,

Prabhakar.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

To be honest I'm not sure why there would be any difference between WDA and WDJ for this activity becuase it is all client side. Are you sure your form is in interactive mode? That is the only reason I could think why it would not be working at runtime. You might make sure that the form is type ZCI and you have included the JavaScript header coding. I suppose if the form isn't initialized right, other scritping might be failing at runtime.

As a possible work around, you could always make your add button a Web Dynpro Submit. You would return to the server and in the event handler you could add the extra row to the context. The performance wouldn't be as good as doing this on the frontend, but it should certainly work.

Incidentaly your closing statement of "Expecting a solution form you..." - seems rather rude.

Former Member
0 Kudos

Hello Mr. Thomas,

I am sorry, for making that statement.

As you have said, creating an empty element to the node, while clicking 'Add' button, adds a row to the Dynamic Table in Adobe Interactive form. But, the form renders every time we click 'Add' or 'Delete' button because of the server roundtrip.

In WebDynpro for java, we need not create an empty element to the node, for just adding a row to the dynamic table in Adobe Interactive Form. But, In WebDynpro for ABAP, it requires to add an empty element to the node.

Thanks for your reply.

Regards,

Prabhakar.