How to Automatically Add Folders to a TreeSet Definition (grouping)
Instead of manually adding folders (see How to Add a Folder to a TreeSet Definition), in some cases you can add a grouping criterion on a TreeSet Collection. This grouping automatically adds the folders in the TreeSet.
Example: Grouping the Org-Units in folders according to their type"
The TreeSet Definition based on:
• Root MetaClass: Org-Unit
• Root TreeSet Collection: collection populated by the "Org-Unit" parameter
• added TreeSet Collection: "Org-Unit Component"
• added Properties: Company Standard, Internal/External, and Org-Unit Type of the Org-Units
Instead of showing the Org-Unit Type values in a TreeSet column, you can group the Org-Unit according to their type.
To group the Org-Unit according to their type in folders:
1. Access the TreeSet Definition properties.
2. Display its Definition page.
3. In the TreeSet Definition structure, select the "Org-Unit Component" TreeSet Collection.
4. In its Grouping Criterion section, select:
• Group by "MetaAttribute"
• Grouping Criterion "Org-Unit Type"
5. In this case, you can remove the Org-unit Type property from the Org-Unit Component TreeSet Collection:
in the TreeSet definition structure, right-click Org-unit Type TreeSet Property and select Remove.
6. Display the TreeSet Definition Preview page.
Org-Units are now grouped in folders according to their type (e.g.: Structure, Function, Manager).