Arranging nodes in tree view tables
The nodes in each level of a tree view table are sorted alphanumerically. To arrange nodes in a logical order, use hidden sort levels. For example, suppose your source form contains this data:
If you use the Type, Severity, Priority, and Description fields as levels in a tree view table, their data is sorted alphabetically and appears in an unintuitive order:
To arrange each level in a logical manner, add Type Sort, Severity Code, and Priority Code sort fields to the form:
Then add the new sort fields as levels to the tree view table field in the order shown in the preceding figure. The following figure shows the resulting tree view table when the new sort levels are visible and when they are hidden:
For information about how to set the sort order and visible levels, see Setting-sort-order-and-visible-levels.
When the sort levels are hidden, child nodes of a node in a hidden level appear as children of the first visible ancestor of the hidden node.
Using PERFORM-ACTION-TABLE-SELECT-NODE
The PERFORM-ACTION-TABLE-SELECT-NODE command selects nodes according to a specified row and column (level) offset. If a tree view table contains hidden levels, this action might select a hidden node. If it does, the selection is rejected and the first visible ancestor is selected instead.
For example, in both of the following tables, the action was instructed to select row 1, column (level) 2:
If the action is instructed to select row 1, column 3 in the preceding example, it selects the Change node in both tables.