cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy a context node to another with same structure

Former Member
0 Kudos

Hi all,

I have a context node (CN1) imported from a model in my component controller.

I'd created another context node (CN2) with the same structure but it is empty.

Now I want to fill (by hardcoded) this last one with the content into the first one. How can I do?

Thanks a lot.

Gianluca Barile

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Answered.

Former Member
0 Kudos

I try with this code but I don't have a result:

IWDNode nodeOut = wdContext.nodeOut();

IWDNode nodeIn = wdContext.nodeIn();

WDCopyService.copySubtree(nodeIn, nodeOut);

What I'd wrong??

I'd tryed also with copyElements e copyCorresponding....

Can you help me please?

Former Member
0 Kudos

Can you check the size of both nodes before and after the copy operation? Are the attribute names identical?

Armin

Former Member
0 Kudos