cancel
Showing results for 
Search instead for 
Did you mean: 

Copying content of a node to another

Former Member
0 Kudos

Hi,

I have 2 node with sam structure (only node name is different).

Is it possible to copy content of one node to other.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use this syntax and code for copying content from one node to another if the structure of both are same.

wdContext.Copy_DestNode().invalidate();

IWDNode sourceNode = (IWDNode)wdContext.nodeSourceNode();

IWDNode Copy_DestNode = (IWDNode)wdContext.Copy_DestNode ();

WDCopyService.copyElements(SourceNode ,Copy_DestNode);

Regards,

Manjunath

Answers (2)

Answers (2)

Former Member
0 Kudos

WDCopyService.copyElements(

wdContext.nodeSource(),

wdContext.nodeDest());

former_member201361
Active Contributor
0 Kudos

Hi,

if the structure is same , then u can use wdCopyServices to copy the nodes.

[]

you can search in SDN for related queries .......

or you can use for loop to iterate each element in the nodeA and copy the data from nodeA to nodeB.

hope it helps...

Thanks and Regards

Edited by: Fazal Ahamed on Oct 26, 2009 8:52 PM