Home > Contents > Index >
TREEMANAGER
Calls the TreeManager servlet.
Syntax
<TREEMANAGER> <[ARGUMENTNAME="somearg" VALUE="somevalue"]/> <[CGIARGUMENTNAME="somecgiarg" VALUE="somecgivalue"]/> </TREEMANAGER>Parameters
ARGUMENT (optional)- Arguments passed to the TreeManager as it is called.
CGIARGUMENT (optional)- CGI arguments passed to the TreeManager.
SCOPED- Valid options for this attribute are as follows:
GLOBAL- The default behaviorLOCAL- Arguments passed in are restored (or destroyed) on return from the call.STACKED- The child only sees the explicit arguments passed in and can only return values in that same namespace.Description
The
TREEMANAGERtag calls the TreeManager servlet. TheGLOBALvalue of theSCOPEDparameter does not protect input variables. UsingLOCALorSTACKEDfor theSCOPEDargument protects those variables from change, but disallows sharing of input space. Use<CGIARGUMENT NAME="name"/>to specify that specific CGI parameters be made available to the CatalogManager. Use ARGUMENT for specific string values.By omitting
SCOPED(or setting it toLOCAL) you can cause the CatalogManager to share all the existing input variables without scoping. Note that this means specified arguments overwrite existing variables. UsingSCOPED="shared"means that you need not specify any argument;CGIARGUMENTS, specifically, are ignored. Note that variables set since program execution began are reset to the original values passed on the URL line. Use with care.Use
CGIARGUMENTto specify that specific CGI parameters be made available to EvalServer. UseARGUMENTfor specific string values.Several
TREEMANAGERcommands (addchild , addchildren , findnode , getchildren , getnode , getparent , listtrees , nodepath ) return a list. Each of those commands has atreenameargument. The name of the returned list is the value passed in thetreenameargument. In the following example, the tree name and the returned list name isMyTree:<TREEMANAGER> <ARGUMENT NAME="ftcmd" VALUE="getparent"/> <ARGUMENT NAME="treename VALUE="MyTree"/> <ARGUMENT NAME="node" VALUE="Variables.MyParent"/> </TREEMANAGER>The following columns are common to lists returned from every command:
nid- 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 Oracle.
ncode- Application-specific code related to the node.Refer to a specific command for more information about the list that is returned by that command.
The following is a list of commands that you use with the
TREEMANAGERtag:
- addchild
- addchildren
- copychild
- createtree
- delchild
- delchildren
- deletetree
- findnode
- getchildren
- getnode
- getparent
- listtrees
- movechild
- nodepath
- setobject
- validatenode
- verifypath
Error Numbers
There are no possible
errnofor this tag.Example
<SETVARNAME="errno" VALUE="0"/> <TREEMANAGER> <ARGUMENTNAME="ftcmd" VALUE="addchild" /> <ARGUMENTNAME="treename" VALUE="TreetestTree"/> <ARGUMENTNAME="nparentid" VALUE="Variables.testroot" /> <ARGUMENTNAME="otype" VALUE="TreetestObjects"/> <ARGUMENTNAME="oid" VALUE="3" /> <ARGUMENTNAME="oversion" VALUE="1" /> <ARGUMENTNAME="nrank" VALUE="2" /> <ARGUMENTNAME="ncode" VALUE="0" /> </TREEMANAGER> <!-- Check status --> <IFCOND="Variables.errno=0"> <THEN>Child of: <CSVARNAME="Variables.testroot/> successfully added. </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.