Enumeration with java action

0
Hi , I'm working with Mendix 10.18 and would like to generate an enumeration value based on a string read from an entity. Is it possible to do this in Mendix? Maybe by using a Java action?
asked
2 answers
2

CommunityCommons has an EnumerationFromString java action you can use as an example. It uses the LogLevel enumeration, but you can replace it with your own enumeration in the import section and modify the parameter in the function it calls.

answered
0

Hello, thank you for your response.

It’s not possible to add new values to the enumeration at runtime — is that correct?

This because enumerations are static and defined at design time.

answered