cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new row to the table and copy

Former Member
0 Kudos

HI EXPERTS,

CAN ANYONE HELP IN THIS REQUIREMENT...

I have one table with some rows. where user click ADD button one new row has to create at first row...

and another one when user select one row and when he click on COPY button one row need to add after the selected row with same data???

anyone help me how to do this??

Thanks and Regards,

kriss

Accepted Solutions (0)

Answers (2)

Answers (2)

Madhu2004
Active Contributor
0 Kudos

Hi,

For adding a new row, create a new element using CREATE_ELEMENT method of IF_WD_CONTEXT_NODE and bind it using BIND_ELEMENT method to the node

For copy, using the lead slection get the elemnet and static attributes.,now create new element, bind the attributes tyo the new element and now bind the new element to the node.

Now to place this new element at desired location use the method MOVE_ELEMENT of IF_WD_CONTEXT_NODE.

Regards,

Madhu

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This question sounds almost exactly the same as this thread posted a few minutes apart:

Note - I cut and pasted the wrong URL the first time. Corrected now.

Edited by: Thomas Jung on Sep 10, 2010 9:50 AM

Former Member
0 Kudos

Thanks Thomas,

Thanks,

kriss