Home > Contents > Index > 
TREEMANAGER.copychild
Copies one or more nodes from one tree to another tree.
Syntax
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="copychild"/> <ARGUMENT NAME="treename" VALUE="name"/> <ARGUMENT NAME="node" VALUE="node ID"/> <ARGUMENT NAME="newtreename" VALUE="treename"/> [<ARGUMENT NAME="nparentid" VALUE="node ID"/>] </TREEMANAGER>Parameters
ftcmd (required)- Value must be set to
copychild.
treename (required)- Name of the source tree from which the node is copied.
node (required)- Node ID of the node to copy.
newtreename (required)- Name of the destination tree where the node is copied.
nparentid (optional)- Node ID of the new parent of the node in the destination tree (
newtreename). Omit or setNULLto make this node a top-level node.
Description
The
copychildcommand copies one or more nodes from one tree to another tree. Multiple nodes are copied if the node is the parent of one child or a number of children.errno
The possible values of
errnoinclude:
Example
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="copychild" /> <ARGUMENT NAME="treename" VALUE="TreeMgrCatalog" /> <ARGUMENT NAME="newtreename" VALUE="TreeMgrCatalog2" /> <ARGUMENT NAME="node" VALUE="Variables.moveme" /> <ARGUMENT NAME="nparentid" VALUE="0" /> </TREEMANAGER> <IF COND="IsError.Variables.errno=false"> <THEN> <BR/>copy succeeded<BR/> Copy tree node is now
<CSVAR NAME="Variables.newtreename.nid"/> <BR/> </THEN> <ELSE> <BR/>copy failed<BR/> </ELSE> </IF>See Also
Home > Contents > Index > 
Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.