cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic table in Offline interactive form

Former Member
0 Kudos

Hi Experts,

I want to add dynamic table (for Purchase Order line items). Number of rows in table will depend on item in purchase order. So, table rows should be added and data can be entered in table rows.

Can anyone give me the steps to solve this issue...

Thanks in advance.

Regards,

Nilesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use Following JavaScript for adding row in the Table:

xfa.resolveNode("Table.item").instanceManager.addInstance(1);

Make sure you have made BP as Flowed Content and the Item and Table subform is also flowed content.

Check the Min Row count checkbox of Item subform also

Hope this helps.

Amit

Former Member
0 Kudos

Hi Amit,

Thanks for your inputs. I am not much aware of JavaScript.

Now, i am done with creating table and adding Subform Instance Control - Insert, Remove and move which is under WebDynpro Native tab to table. but i dont know how to attach this instance control with table so that when + button is clicked, rows will be added in table. Can you please help me in this..

Regards,

Nilesh

Former Member
0 Kudos

Hi Nilesh,

I have never used Native Controls, so I dont know how to add these controls to the table, I am sending you an XDP on your email id that have similar functionality, you can check that coding and similary write script in your form.

Hope this helps you,

Amit

Answers (0)