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

 


ics:treemanager.getchildren

Retrieves a list of child nodes from a tree using the ics:treemanager command, specifically when you want to retrieve the children of a particular node (specified by nparentid).

Syntax

Parameters


ftcmd (required)
Value must be set to getchildren.

treename (required)
Name of the tree.

orderby (optional)
Specifies the tree column in which to sort results. Note that this order is valid only if depth=1.

where (optional)
Values of the column names containing data to use in constructing the query. Only variables whose column names appear in this list are used in constructing the query.

Legal values are: nid, nparentid, nrank, ncode, otype, oid, oversion.

For example, Where=nparentid, otype uses the values in the variables nparentid and otype to build the query.

nparentid is always part of the query, if it is not specified in the where clause; or, if there is no nparentid variable set, the value of the tree root (0) is used.

Also, otype must be specified if the join is true.

where2 (optional)
Additional SQL filtering (must be well formed SQL).

depth (optional)
Defaults to 1. Limits the depth of recursion when scanning a tree. Illegal values are converted to 1. Specify -1 to remove depth restrictions on scan. Note below the impact of a deep recursive search. The depth parameter must be set to 1 if join is true.

width (optional)
Defaults to -1 (that is, no limit). Limits the number of children per parent that are returned in the list. Illegal values are converted to -1. If width is specified, it overrides the value of limit as they become interchangeable in a single depth tree. If depth is greater than 1, width, limit, and depth are all relevant in defining the values returned in the list.

join (optional)
true/false to join to an object table. Note that the object table holds the cache information. Defaults to false.

limit (optional)
The maximum rows returned in a list.


Description

The getchildren command retrieves a list of child nodes from a tree, specifically when you want to retrieve the children of a particular node (specified by nparentid). The parent node is not returned as part of the list. The corresponding object data for the nodes may be joined to the result if desired.

Wildcards are not allowed in any of the variables being searched for. If a % is found in a variable whose column is specified as part of the search, it is ignored.

Object tables that are joined to are required to be registered as type obj in the SystemInfo table in order to support the caching of resultsets that are created. You cannot join to an object table if the where clause does not specify a unique classtype; that is, the returned resultset is a combination of a treenode and a single object type. Specifying a join forces the depth to 1. You may only retrieve the joined results for the current node.

Scan is depth first. Recursive (depth > 1) scan is considerably more expensive than a flat scan. All tree scan results can be cached based on system configuration. Then name of the LIST is value-of-treename.

When depth is specified as a legal positive value greater than one, an additional column depth is added to the resulting list. The name of the LIST constructed is stored in the value of the Variables.treename.

Retrieves a list of child nodes from a tree, specifically when you want to retrieve the children of a particular node (specified by nparentid). The parent node is not returned as part of the list. The corresponding object data for the nodes may be joined to the result if desired.

errno

The possible values of errno include:

Value
Description
-3
No access privileges to table.
-103
No table.
-106
Missing or invalid parameters.
-110
Invalid tree name.
-111
No nodes.

See Also

The following ics:treemanager commands:

ics:treemanager.findnode

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.