Start page / Template development / Rules / Form properties <PROPERTY/> / Property ID

ID property

Determining the ID of the current element

Each element in FirstSpirit has a unique identification number (ID).
This can be determined via a rule.

The expression <PROPERTY source='#global' name='ID'/> can be used in the value determination of the rule definition (or for the definition of a precondition). Since this is a generally applicable property, the object #global has to be assigned to the source attribute.

A page returns for example the information of the page (even if the rule is executed e.g. in a paragraph within a FS_CATALOG input component).
In metadata, information of the element on which the metadata was defined is returned.

Example

<RULES>
<RULE when="ONLOCK">
<WITH>
<PROPERTY name="ID" source="#global"/>
</WITH>
<DO>
<PROPERTY name="VALUE" source="ID"/>
</DO>
</RULE>
</RULES>

© 2005 - 2024 Crownpeak Technology GmbH | All rights reserved. | FirstSpirit 2024.10 | Data privacy