Any enumeration

See also: Enumeration, Unit, Any static enumeration

Resolver – Abstract

Purpose: Returns a statically determined enumeration value from an arbitrary enumeration.

images/download/attachments/201673390/image2023-1-11_8-10-43-version-1-modificationdate-1746778496221-api-v2.png

IMPORTANT◄ All resolvers for Static values ignore the input value. Within a resolver chain (see Chained resolver) this prevents the processing of all preceding resolvers (if any).

The Any enumeration resolver returns a statically determined enumeration value (DynamicEnum) from an arbitrary enumeration.

It appears by default as a suggestion for value configurations when the context refers to the enumeration (DynamicEnum) class without specifying the enumeration type.

The Jede dynamische Aufzaehlung (Statische Werte resolver can also be accessed specifically (via context menu in a value configuration) to insert a enumeration value without the context suggesting it.

NOTE

Configuration

The Auswahlfeld/Combobox element allows static single selection for values from all enumerations (see Enumerations).

Its search function looks for matches between the text input and the labels listed in the dropdown for the enumeration values. The label includes the following components:

  • The localization for the enumeration name, e.g. 'Salutation'.

  • The localization for the enumeration value, e.g. 'Company'.

  • The internal name of the enumeration value, e.g. COMPANY.

images/download/attachments/201673390/image2023-1-11_8-17-35-version-1-modificationdate-1746778496223-api-v2.png

The enumeration to which a selected value belongs is identified as the class for the return value.

images/download/attachments/201673390/image2023-1-11_8-18-57-version-1-modificationdate-1746778496225-api-v2.png

Example

A myDenumList list variable is used to 'collect' information in the form of enumeration values, which can come from different enumerations, depending on the course of a transaction. Towards the end of event processing, this 'collection' is processed as a whole. The following screenshot shows an excerpt of an event handling in which a last value is added to the myDenumList list variable via Modify list before the evaluation is started by a For each loop event action.

images/download/attachments/201673390/image2023-1-11_8-23-43-version-1-modificationdate-1746778496227-api-v2.png

  • Since 'Enumeration' is specified as the Class for the list in the myDenumList variable, an Any enumeration resolver is suggested on the right side of the Modify list event action.

  • In this specific case, the enumeration value for the Type of packaging 'Tank container' (TC) is added. As the result of the search for the text input container makes clear, matches from other enumerations are also suggested.