cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with WDCopyService.copyElements() method

Former Member
0 Kudos

Hi experts,

I'm new to web dynpro. This is my first post.

I have a Records model node in my view. I created another node with the same structure. I want to copy elements from first node to the second. I used copyElements() method.

I also created two tables and two buttons, such that on click of first button first table(original node) is populated and second button used to populate second table.

The problem here is that if first table shows 10 records, those many empty rows are displayed in second table.

I don't know where i have gone wrong.

Please help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check this link for solution.

And if u have to use WDCopyService.copyElements()

then value atribute name in the value nodes should be same and type also should be same.

Regards,

H.V.Swathi

Former Member
0 Kudos

Thanks a lot for ur quick replies.

It works fine now. I had given different names to attributes, like "Mrp" and "mrp".

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Welcome to SDN!................

Both the Structures of the node and attributes datatype should be same

WDCopyService.copyCorrespondin(source, target);

and try check the target node size

wdContext.node<target>().size();

Thanks

Tulasi

Former Member
0 Kudos

Please post your code here.

Also check if you bind the dataSource property of the tables to the appropriate nodes.