on 10-26-2009 3:10 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WDCopyService.copyElements(
wdContext.nodeSource(),
wdContext.nodeDest());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.