Home > Contents > Index > 
Expanded TOC | Accordion TOC | Annotated TOC | Index 
ICS.TreeManager
Executes a
TreeManagercommand.This method has two variants:
- TreeManager (Variant 1) executes
 TreeManagercommands.
- TreeManager (Variant 2) executes
 TreeManagercommands and accepts a handle for theBatchContextobject.For more information on the various
TreeManagercommands, see the TreeManager command in the CS Developer's Tag Reference.Several
TREEMANAGERcommands (addchild,addchildren,findnode,getchildren,getnode,getparent,listtrees, andnodepath) return a list. Each of those commands has atreenameargument. The name of the returned list is the value passed as the treename argument.The following columns are common to every list returned by a
TreeManagercommand:
 Column Name What it Holdsnid Tree node ID.nparentid Parent tree node ID. 0 (zero) means it is a root node.nrank Application-specific rank of the node.otype Object table referenced by this node.oid Object ID referenced by this node.oversion Reserved for future use by FatWire.ncode Application-specific code related to the node.
ICS.TreeManager
Use this method to execute a TreeManager command. A list of available commands follows:
addchilddelchildrengetnodenodepathaddchildrendeletetreegetparentsetobjectcopychildfindnodelisttreesvalidatenodecreatetreegetchildrenmovechildverifypathdelchild
For more information on the various TreeManager commands, see the TreeManager command in the CS Developer's Tag Reference.
Syntax
public boolean TreeManager(FTValList vIn)Parameters
vIn- List of name/value pairs passed to TreeManager. The
 ftcmdparameter is required and specifies the specific TreeManager command to execute. Any other parameters depend on the TreeManager command. Anullindicates using existing variables.
Returns
Returns
trueif TreeManager was invoked successfully.errno
Use
GetErrno()to check the results of the specific TreeManager command.Example
// add node ics.ClearErrno(); inList.removeAll(); inList.setValString("ftcmd", "addchild"); inList.setValString("treename", treeTable); inList.setValString(Msg.parentnode, node); inList.setValString(Msg.classType, topicTable); inList.setValString(Msg.classId, newId); ics.TreeManager(inList); ics.GetErrno();
ICS.TreeManager
Use this method to execute a TreeManager command.
Syntax
public boolean TreeManager(FTValList vIn, Object oBatchContext)Parameters
vIn- List of name/value pairs passed to TreeManager. The
 ftcmdparameter is required and specifies the specific TreeManager command to execute. Any other parameters depend on theTreeManagercommand. Anullindicates using existing variables.
oBatchContext- A handle for the
 BatchContextobject.
Description
Use this method to execute a TreeManager command. This variant accepts a
BatchContextobject. The following lists the TreeManager commands that acceptBatchContextobjects:
addchild
addchildren
deletechild
deletechildrenReturns
Returns
trueif TreeManager was invoked successfully.errno
Use
GetErrno()to check the results of the specific TreeManager command.
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.