Hierarchical objects are the objects, which have group and simple instances. Groups can be nested. In ELMA Web Application, Object Model Reference contains hierarchical objects, whose items are grouped (fig. 1). Non-hierarchical objects are shown as a list.
Fig. 1. A hierarchical object with group and simple instances
To make an object hierarchical (add the Hierarchical property to it), open the required object page and select Hierarchical on the Additional tab. When you select this checkbox, a new field "Hierarchy type" with the drop-down list will appear on the tab. The drop-down list includes two items: Groups and elements. For more information, see the respective Help page. Also, when you select the Hierarchical checkbox, several properties appear on the object page, on the Properties tab:
Parent Object – link object instances to a group of instances of the object. In Web Application, this field is a drop down list, from which you can select a parent object for the created instance.
Is a group – make the object instance a group. When you select Yes this object instance is added to the drop down list of the Parent Object field, and displayed on the object page as a group (folder).
Creating a group in a hierarchical object
You can create a group in a hierarchical object only if you have access permissions to add object instances.
To create a group in a hierarchical object, click Create – Create Group in the toolbar of the object page (fig. 2).
Fill in the required fields on the opened page (fig. 3) and click Save.
Fig. 3. Creating an instance of the hierarchical object
By default, this page displays the following fields:
is a group – select Yes;
Parent Object – to create a group on the object page, leave this field empty. If you need to create a nested group, select the required parent group in this field.
You can create an instance in a group of a hierarchical object only if you have access permissions to add object instances.
To create an instance in a group, click Create on the page of the required object or group (fig. 4).
Fig. 4. Object page. "Create" button
Fill in the required fields on the opened page (fig. 3) and click Save.
By default this page displays the following fields:
is a group – select No;
Parent Object – to create a group on the object page, leave this field empty. If you need to create a nested group, select the required parent group in this field.