Home > Contents > Index >
TREEMANAGER.getparent
Gets the parent record of a given node.
Syntax
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="getparent/> <ARGUMENT NAME="treename" VALUE="name"/> <ARGUMENT NAME="node" VALUE="nodeid"/> </TREEMANAGER>Parameters
ftcmd (required)
- Value must be set to
getparent
.
treename (required)
- Name of the tree
node (required)
- ID of the node.
Error Numbers
The possible values of
errno
include:
Value Description -3 No access privileges to table. -101 No rows. (If node is invalid.) -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
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="getparent"/> <ARGUMENT NAME="treename" VALUE="TreetestTree"/> <ARGUMENT NAME="node" VALUE="Variables.parent"/> </TREEMANAGER> <IF COND="IsError.Variables.errno="false"> <THEN> <IF COND="IsList.TreetestTree="true"> <THEN> <TABLE CELLSPACING="2" CELLPADDING="2" BORDER="1" RULES="all> <TR> <TD><FONT COLOR="#000080"> <B>nid</B></FONT> </TD> <TD><FONT COLOR="#000080"> <B>nparentid</B></FONT> </TD> <TD><FONT COLOR="#000080"> <B>otype</B></FONT> </TD> <TD><FONT COLOR="#000080"> <B>oid</B></FONT> </TD> <TD><FONT COLOR="#000080"> <B>nrank</B></FONT> </TD> <TD><FONT COLOR="#000080"> <B>ncode</B></FONT> </TD> </TR> <LOOP LIST="Variables.treename"> <TR> <TD> <CSVAR NAME="Variables.treename.nid"/> </TD> <TD> <CSVAR NAME="Variables.treename.nparentid"/> </TD> <TD> <CSVAR NAME="Variables.treename.otype"/> </TD> <TD> <CSVAR NAME="Variables.treename.oid"/> </TD> <TD> <CSVAR NAME="Variables.treename.nrank"/> </TD> <TD> <CSVAR NAME="Variables.treename.ncode"/> </TD> <TD> <CSVAR NAME="Variables.treename.oversion"/> </TD> </TR> </LOOP> </TABLE> </THEN> </IF> </THEN> <ELSE> <BR/>failed<BR/> </ELSE> </IF>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.