Extend getCaption($ENUM) with LanguageCode - Mendix Forum

Extend getCaption($ENUM) with LanguageCode

12

It would be great if the function getCaption($ENUM, languageCode) could become available as a standard function within microflows. This would allow control over which value is shown to the user (for example, in document processing).

 

By default, enumerations are translated based on the user's language.

An example where this goes wrong is when a Dutch user is preparing an English document. In the logic, you can't use getCaption($ENUM) in that case, because the Dutch caption will be used. It would therefore be useful if getCaption could optionally be extended with a languageCode, so we can control this within our logic.

 

I’ve currently worked around this by retrieving the ENUM caption via MxModelReflection in a rather cumbersome way. This is inconvenient and error-prone. It would be great if this were standard functionality in Mendix!

asked
0 answers