Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We can copy a node with all its child nodes from the context menu by clicking the Copy menu item.
Is it possible to do the same (copy a node and all its children) from C# code?
HI Alex,
Yes you can.
First create an instance of the document you want to move.
Document
doc = new Document( the id of the document you want to move);
Then you can copy it.ou can even add a relation to the original document just as you can fro the GUI
doc.Copy( your parent document id as integer ,
new User(0), relate to original true/false);
Hope this helps you,
Richard
Will doc.Copy(...) also copy all its children?
Yes, it will.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Copying nodes programmatically
We can copy a node with all its child nodes from the context menu by clicking the Copy menu item.
Is it possible to do the same (copy a node and all its children) from C# code?
HI Alex,
Yes you can.
First create an instance of the document you want to move.
Document
doc = new Document( the id of the document you want to move);
Then you can copy it.ou can even add a relation to the original document just as you can fro the GUI
doc.Copy( your parent document id as integer ,
new User(0), relate to original true/false);
Hope this helps you,
Richard
Will doc.Copy(...) also copy all its children?
Yes, it will.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.