Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82388

Custom caption for enum

$
0
0

Hi,

Suppose I have a multi-tenant application where I have an enum field somewhere.

What I would like to happen is that for different tenants, a different caption is displayed to the user for the different values of the enum.

The solutions I can come up with are:

 - Make the caption a uuid, and use a javascript snippet that replaces this guid with the desired caption. This makes me unhappy because it is hacky and ridiculous.
 - Do not use an enum, use a reference selector to a new entity. This makes my users unhappy because they like selecting via a radiobutton here and not a dropdown list.
 - Make a custom widget to handle this. This makes my PO slightly unhappy because it takes a lot of time, my tester unhappy because it will need to be tested thoroughly and my future team members unhappy because they will need to maintain a custom widget.

Are there any solutions I did not consider?


Viewing all articles
Browse latest Browse all 82388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>