Add/adapt an enumeration

For a new enumeration attribute, you can reuse an existing enumeration or create a new one. You are recommended creating a new enumeration. Reusing an existing enumeration when customizing elements can lead to conflicts with other enumeration attributes that refer to this enumeration.

Location

XML file in the xml folder

Procedure

  1. Insert a new <enum> element.
  2. Define the required properties id (unique name), isMultiple (single or multiple selection), and type (number or string)
  3. As child elements, add the elements of the enumeration as an <enumitem> element.
  4. Assign a unique name (id) and a corresponding value (value) to each <enumitem> element.

Remark

If number type is selected, the value property of the <enumitem> elements must only contain figures. If the formRelevant property is set to false, you cannot select the value in the form. The same applies to filterRelevant with regard to the selectability in the filter.

Documents

enumerations.xml

Example

ModifyObject_AddEnumerationAttribute

\WEB-INF\config\custom\xml\custom.xml: Add/Modify enumeration