cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert a row between rows?

Former Member
0 Kudos

Hi All,

In table control i am inserting row on doing some action. Every row contains one button.

For Ex: table contains 4 rows, if i click on 2nd row button i want to insert new row with different initial data by next of that on click of the button row.

How to do this?

Edited by: MadhanSAP on Feb 1, 2011 1:35 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

gill367
Active Contributor
0 Kudos

hi

What you can do is just update the internal table bound with the table 's data source node.

and fill the node once again.

thanks

sarbjeet

Former Member
0 Kudos

Hi,

Is the table control impelement single/multiple lead selection.

On the clieck of that button, there is an corresponding event right..

Get the index of that row for whcih button click is done use the methods in the IF_WD_CONTEXT_NODE.

Increment the index that you have got in earlier step, use the CREATE_ELEMENT of the IF_WD_CONTEXT_NODE.

While using the above method, pass the structure with all the ncecessary values being filled and then pass this structure to the CREATE_ELEMENT method.

Search SCN on the same for inserting row in the table control. You can take them as references and then proceed..If you have any issues still then post them..

Regards,

Lekha.