International Enumerations Captions

Content Type: Sample
Categories:

Overview

When in need to get the international captions of enumerations,e.g. for document generation that is independant from a user's UI language, here is a sample implementation of how to use Mx Model Reflection to get the language code specific caption of an Enumeration attribute.

Documentation

FOR COMMUNITY-SUPPORTED CONTENT

 

Description

Offers a Microflow SUB_getEnumInternationalCaption that takes “Module.Object”, “EnumAttribute”, “key” and “locale” as String input and provides the language code specific caption as a String.

Typical usage scenario

Can be used whenever international captions are required that do not rely on a user’s UI language, e.g. when generating documents in different languages.

Features and limitations

  • Does currently not use the default language as a fallback option.
  • Just provides an empty string when Object, Attribute, Enum_Entry or Locale could not be found.
  • Creates respective log entries though (warnings).

Dependencies

  • Has been developed on Mendix Studio Pro 8.10.2, however should work with older versions too.
  • Requires Mx Model Reflexion.

Installation

  • It is a sample implementation so load the project and copy & paste!

Releases

Version: 1.0.0
Framework Version: 8.10.2
Release Notes: First version