Home > Contents > Index >
TREEMANAGER.movechild
Moves a node and its children to a new parent that may be in the same or a different tree table.
Syntax
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="movechild"/> <ARGUMENT NAME="treename" VALUE="name"/> <ARGUMENT NAME="node" VALUE="nodeid"/> <ARGUMENT NAME="newtreename" VALUE="treename"/> [<ARGUMENT NAME="nparentid" VALUE="node id"/>] </TREEMANAGER>Parameters
ftcmd
(required)- Value must be set to
movechild
.
treename
(required)- Name of the source tree.
node
(required)- ID of the node to move.
newtreename
(required)- Name of the new (destination) tree.
nparentid
(optional)- ID of the new parent of the node (omit or NULL to move to root).
errno
The possible values of
errno
include:
Value Description -3 No access privileges to table. -103 No table. -105 Database error. -106 Missing or invalid parameters. -110 Invalid tree name. -112 The parent node does not exist or this node is a root node. Note that versions of Content Server earlier than 3.5 reacted to these errors by returning anerrno
of0
(with an empty resultset 0 rather than anerrno
of-112)
.Example
<SETVAR NAME="errno" VALUE="0"/> <TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="movechild" /> <ARGUMENT NAME="treename" VALUE="TreetestTree" /> <ARGUMENT NAME="newtreename" VALUE="TreetestTree" /> <ARGUMENT NAME="node" VALUE="Variables.moveme" /> <ARGUMENT NAME="nparentid" VALUE="Variables.emptynode" /> </TREEMANAGER> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.