Defining a TreeSet Collection
By default a TreeSet Collection is displayed in the tree, and all of its nodes are visible. If needed, you can hide:
• the entire TreeSet Collection
This is useful for example to define tree items that are used as filters but do not need to appear in the tree display.
• the nodes of the TreeSet Collection that do not have any child
You can add folders to a TreeSet Collection:
• automatically
• manually
You can define a TreeSet Collection with a loop, which enables to add a recursive definition.
Hiding a TreeSet Collection
To hide a TreeSet Collection:
1. Access the TreeSet Definition.
2. Display its Definition page.
3. Select the TreeSet Collection you want to hide.
4. In the right pane set Visible parameter to "No.
Hiding nodes with no child
By default, any node of the collection is displayed, even if a node has no child. You can hide nodes with no child.
To hide the node with no child of a TreeSet Collection:
1. Access the TreeSet Definition.
2. Display its Definition page.
3. Select the TreeSet Collection for which you want to hide nodes with no child.
4. In the right pane set Must have a child parameter to "Yes".
Adding automatic folders to a TreeSet Collection
You can add automatic folders to a TreeSet Collection. In that case you cannot change the name of the folders as when manually adding folders.
These folders are created by adding a grouping criterion on a TreeSet Collection.
You can group by:
• Object Type
• a MetaAttribute value
• a MetaAssociationEnd, or
• a Query
To add a folder to a TreeSet Collection:
1. Access the TreeSet Definition.
2. Select the TreeSet Collection concerned by the grouping.
3. In the right pane, in the Grouping Criterion section define the grouping:
• in Group by, select the grouping type
• if you selected "MetaAttribute", "MetaAssociationEnd" or "Query", select the Grouping Criterion
Adding folders to a TreeSet Collection
You can add a folder to a TreeSet Collection. You can add the folder as you create the Definition or once the Definition is created.
To add a folder to a TreeSet Collection:
1. Access the TreeSet Definition.
2. Hover the cursor over the TreeSet Collection under which you want to add a folder and click
New
> TreeSet Collection.
3. Define the folder.
In its Identification section:
• Name: enter the name of the folder
• Is folder: yes
4. (If needed) Drag and drop the required TreeSet Collection(s) in the folder.
Adding a loop to a TreeSet Collection
With a recursive hierarchy, you can add a collection loop to the TreeSet Collections.
To add a loop to a TreeSet Collection:
1. Access the TreeSet Definition.
2. Display its Definition page.
3. Select the TreeSet Collection for which you want to add a loop.
4. In the right pane, in the Recursive Definition section define the loop:
• in the TreeSet Collection loop field, select the "<TreeSet Collection name>".
• (optional) in the Maximum loop depth enter the number of levels you want to add.