Home > Contents > Index >
TREEMANAGER.setobject
Sets an object on a node.
Syntax
<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="setobject"/> <ARGUMENT NAME="treename" VALUE="name"/> <ARGUMENT NAME="node" VALUE="nodeid"/> [<ARGUMENT NAME="otype" VALUE="object table"/>] [<ARGUMENT NAME="oid" VALUE="object"/>] [<ARGUMENT NAME="validate" VALUE="true or false"/>] [<ARGUMENT NAME="nrank" VALUE="rank value"/>] </TREEMANAGER>Parameters
ftcmd (required)
- Value must be set to
setobject
.
treename (required)
- Name of the tree.
node
(required)- ID of the node.
otype (
optional)- Name of the object table.
oid
(optional)- Identifies the object in an object table.
ncode
(optional)- 16-character string available for use by an application.
validate
(optional)- If
true
, the object is validated before being set (see alsovalidatenode
).
nrank
(optional)- Value of rank to assign this node.
Description
The
setobject
command sets an object on a node.The
otype
,oid
, andncode
parameters may beNULL
ifvalidate
isfalse
. Ifvalidate
istrue
, the existence of the table named with theotype
parameter, and the existence of a record identified by theoid
paremeter, is verified.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. -114 Missing class type (Ifvalidate
istrue
).Example
<SETVAR NAME="errno" VALUE="0"/> <TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="setobject"/> <ARGUMENT NAME="treename" VALUE="TreetestTree2"/> <ARGUMENT NAME="node" VALUE="Variables.setme"/> <ARGUMENT NAME="otype" VALUE="TreetestObjects"/> <ARGUMENT NAME="oid" VALUE="345345764"/> <ARGUMENT NAME="oversion" VALUE="1"/> <ARGUMENT NAME="validatenode" VALUE="true"/> </TREEMANAGER> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.