cancel
Showing results for 
Search instead for 
Did you mean: 

help-copy a table's record to the next line

Former Member
0 Kudos

Dear all,

I have a table which contains the data i get from RFC.Each and every rows of data got one add button,user can click the add,and the particular record will be copy and be added to the following rows. which mean if i got 3 records,if i select the add button at 2nd records,means,i will add a new record ( wif all the details of 2nd records) at 3rd line of the table.n my table now have a total of 4 records. Any idea how to do it ?i used the following code at the add button but i get the error

cannot bind or add element, because it is already bound to a node

pls help.thx

my code are as below:

int leadSelect = wdContext.nodePOItem().getLeadSelection();

int index = leadSelect + 1;

IPrivateGrAppView.IPOItemElement myElement = (IPrivateGrAppView.IPOItemElement) wdContext.nodePOItem().getPOItemElementAt(leadSelect);

wdContext.nodePOItem().addElement(index,myElement);

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

solved by myself.