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.

 

Mx11+ BREAKING CHANGE : Retire Javascript actions because React client doesn't offer the required API, and Dojo API is now deprecated

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.

only microflows are supported. Nanoflow used to be supported in previous versions based on Dojo API, but react client API for Mx11 doesn't offer the required API.

 

 

 

 

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

 

 

 

 

  •  

 

 

 

 

Releases

Version: 3.0.0
Framework Version: 11.11.0
Release Notes:
  • Upgrade to MX 11
  • Fix java for Mx 11 compatibility
  • BREAKING CHANGE : Retire Javascript actions because React client doesn't offer the required API, and Dojo API is now deprecated

 

Version: 2.0.2
Framework Version: 9.24.2
Release Notes: license update to apache v2
Version: 2.0.1
Framework Version: 9.24.2
Release Notes: license update
Version: 2.0.0
Framework Version: 9.24.2
Release Notes: Add JavascriptActions to support nanoflows with a similare logic. StringToEnum now returns an error if the value provided as string is not a valid key.
Version: 1.0.0
Framework Version: 9.24.2
Release Notes: First release