Any dynamic enumeration

See also: Dynamic enumeration, Unit, Any static enumeration

Resolver – Abstract

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

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

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

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

It appears by default as a suggestion for value configurations when the context refers to the dynamic 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 dynamic enumeration value without the context suggesting it.

NOTE

Configuration

The Auswahlfeld/Combobox element allows static single selection for values from all dynamic enumerations (see Dynamic 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 dynamic enumeration name, e.g. 'Salutation'.

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

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

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

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

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

Example

A myDenumList list variable is used to 'collect' information in the form of dynamic enumeration values, which can come from different dynamic 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/128387045/image2023-1-11_8-23-43-version-1-modificationdate-1676010796269-api-v2.png

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

  • In this specific case, the dynamic 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 dynamic enumerations are also suggested.