Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:treemanager.addchild
Adds a node to a tree table using the
ics:treemanagercommand.Syntax
<ics:treemanager> <ics:argument name="ftcmd" value="addchild"/> <ics:argument name="treename" value="name"/> [<ics:argument name="parentid" value="node ID"/>] [<ics:argument name="otype" value="object table"/>] [<ics:argument name="oid" value="object ID"/>] [<ics:argument name="oversion" value="object version"/>] [<ics:argument name="ncode" value="string value"/>] [<ics:argument name="nrank" value="node rank"/>] </ics:treemanager>Parameters
ftcmd (required)- Value must be set to
addchild.
treename (required)- Name of the tree.
parentid (optional)- Node ID of the parent node. Omit or set to
NULLto make this node a top level node. Top level nodes are identified by a 0. Must be an integer.
otype (optional)- Name of an object table.
oid (optional)- Identifies the current object on this node. The
oidshould correspond to a value in the object table's id column.
oversion (optional)- Numeric value that specifies the version of the object. This parameter is not supported for this release of Sites, and is reserved for use in later versions.
ncode (optional)- 16-character string value that is available for use by the application.
nrank (optional)- Numeric value of the rank to assign this node.
Description
The
addchildcommand adds a node to a tree table.After executing the
addchildcommand, a list named after the tree table or found in a variable calledtreenameis created. A unique identifier for the node in the tree, thenidvalue, is automatically generated when you successfully add a node. The value ofnidcan be retrieved in the tree result list.errno
The possible values of
errnoinclude:
Value Description -3 No access privileges to table. -103 No table. -105 Database error. -106 Missing or invalid parameter. -110 Invalid tree name.See Also
The following
ics:treemanagercommands:
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.