cancel
Showing results for 
Search instead for 
Did you mean: 

Adding row dynamically to table

Former Member
0 Kudos

Hi,

I am using adobe form with webdynpro abap.

I have requirement to add new row to table when user click on some button. So for that i have used the addInstance() method for the table row and its working fine, it adds new row to table.

But these newly added rows are not getting pass to webdynpro.

Regards,

Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vikram,

When you do an addInstance(), a new row instance of that Table UI element, is created in the Form.

However, for the data that you will enter into this new row, a corresponding context element(to which the row is mapped) instance must be present in the webdynpro view too.

Hence, make sure that you create an instance of the context node element.

It should work now.

Regards,

Hanoz

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Vikram,

Recheck the binding of your form fields to WebDynpro context in your form.

Chintan

Former Member
0 Kudos

Hi Chintan,

Table binding is correct. What i observed if i pass empty row from webdynpro and in form if i set data to those row than data is pass to webdynpro but when i add row with addInstance method and set data to newly create row data is not getting pass to webdynpro.

Do i need to do something more than just calling addInstance method?

Regards,

Vikram

chintan_virani
Active Contributor
0 Kudos

Vikram

See if this [article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669] helps you.

Chintan