Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 


TREEMANAGER.addchildren

Adds multiple nodes to a tree table.

Syntax

Parameters

ftcmd (required)
Value must be set to addchildren.

treename (required)
Name of the tree.

parentnodeN (required)
nid of the parent node. The value N corresponds to the row number to be added starting from 0 (zero). Top level nodes are identified by a zero value. Must be an integer. Unlike the addchild command, nparentidN must be provided and cannot be left NULL.

otypeN (optional)
Name of an object table. The value N corresponds to the row number to be added starting from 0 (zero).

oidN (optional)
Identifies the current object on this node. The oid should correspond to a value in the object table's id column. The value of N corresponds to the row number to be added starting from 0 (zero).

oversionN (optional)
A numeric value that specifies the version of the object. This parameter is not supported for this release of Content Server, and is reserved for use in later versions.

ncodeN (optional)
A 16-character string value that can be used by an application. The value of N corresponds to the row number to be added starting from 0 (zero).

nrankN (optional)
A numeric value of the rank to assign this node. The value of N corresponds to the row number to be added starting from 0 (zero).

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 parameter.
-110
Invalid tree name.

Example

The following example adds two nodes to the tree table and then browses the list to retrieve the two nodes' nid values for future use.

See Also

addchild
createtree

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.