Enum To List
Content Type: Module
Categories: Utility
Overview
This module EnumToList allows to transform an enumeration (as object attribute) into a list of object in order to iterate with a loop.
- It can be a list of a generic entity, a value pairs where the enumeration values are transformed as strings.
- It can also be a list of specific entities that hold the actual enumeration as attribute.
- It also offer the capability to set from a string the enumeration value on an object attribute.
In all these capabilities, it is required for the enumeration to be hold as attribute on a entity. Both microflows and nanoflows are supported.
Documentation
Description
This module EnumToList allows to transform an enumeration (as object attribute) into a list of object in order to iterate with a loop.
- It can be a list of a generic entity, a value pairs where the enumeration values are transformed as strings.
- It can also be a list of specific entities that hold the actual enumeration as attribute.
- It also offer the capability to set from a string the enumeration value on an object attribute.
In all these capabilities, it is required for the enumeration to be hold as attribute on a entity.
Both microflows and nanoflows are supported.
Typical usage scenario
Loop over the possible values of an enumeration.
Features and limitations
- Enum to generic list
- Enum to custom list
- String to Enum Attribute
Dependencies [optional]
- Mendix 9.24.2