This can only be done by using a enumeration or an associated attribute which is filled with the value.
Hello,
Is this still the best way to do it at this time?
Thank you in advance!
For the future developers, you can also consider using Data Grid 2 module, developed by Mendix.
https://docs.mendix.com/appstore/modules/data-grid-2/#42-dynamic-text