Display integer values as strings

For object class properties stored as integer values, you can assign an enumeration to the object class property to define an allowed value range and at the same time display the values as string on the Alfabet user interface. This is for example provided in the standard meta-model for the object class PERSON . Whether the user is a named user or an anonymous user is stored as an integer with 1 for named user, 2 for anonymous user, and 4 for users with no access. A private PersonType enumeration is assigned to the object class property. This enumeration restricts the integer values which can be set for the property to the valid values 1, 2, or 4 and provides a string for each integer value. When the user sets the value in the user interface, the drop-down list will display the string values only. The user can select between meaningful values.

You can define enumerations for custom object class propertyies and calculated object class properties only. Assignment of enumerations to private and protected object class properties is blocked.

Create an integer enumeration.

Assign the integer enumeration to the object class property.

In the Meta-Model under the Classes node, click the node of the custom object class property or calculated object class property to which you want to assign the enumeration. Select the enumeration in the Enumeration attribute.