CONTAINERTYPE property
Returns the object type that contains an input component
Input components can be used in different contexts, in sections, in list components such as FS_CATALOG, or also in datasets or pages. The CONTAINERTYPE attribute can be used to determine the type of object. Depending on the surrounding object type, the input component can then be actively displayed or hidden, for example (or even block them from being edited).
The expression <PROPERTY source='#global' name='CONTAINERTYPE'/> can also be used as the rule definition in the value determination area (or for the definition of a precondition). It returns the identifier of the container type, whereby the returned value corresponds to the type name (in uppercase letters). The following types are currently supported:
Type name | Surrounding object/container type |
---|---|
FS_CATALOG | Input component of the FS_CATALOG type |
CMS_INPUT_DOM | Input component of the CMS_INPUT_DOM type |
CMS_INPUT_DOMTABLE | Input component of the CMS_INPUT_DOMTABLE type |
CMS_INPUT_LINK | Input component of the CMS_INPUT_LINK type |
CMS_INPUT_IMAGEMAP | Input component of the CMS_INPUT_IMAGEMAP type |
BODY | Section underneath a content area |
NONE | No surrounding object/container |
The returned value can be compared with the type names given above via <TEXT/>.
Note: The ELEMENTTYPE attribute can determine whether it is a page.
Examples
Check if the input component is in FS_CATALOG
In this example, a check is being carried out to ascertain whether the input component is contained in a FS_CATALOG component. If this is the case, the “st_text” component is shown. If it is not contained in a FS_CATALOG, it will not be shown.
<RULES>
<RULE>
<WITH>
<EQUAL>
<PROPERTY name="CONTAINERTYPE" source="#global"/>
<TEXT>FS_CATALOG</TEXT>
</EQUAL>
</WITH>
<DO>
<PROPERTY name="VISIBLE" source="st_text"/>
</DO>
</RULE>
</RULES>