Show the information of an enumeration on screen

0
I have an enumeration and I want to show all the different names on screen, only the name. Anyone know how to do it? Thanks
asked
3 answers
0

You can do this manually in Mendix.

  • Use a data view or list view (or other one)
  • Choose the entity which contains the enum
  • In de the data/list view add for each enum item a text:
     
    getCaption(ModuleName.EnumName.EnumKey)


    You need this code for each enum item

answered
0

I don't know how you wont to appear them but you can put the enumeration as radio button then you can see all the different values for that enumeration at the screen.

 

answered
0

Hi Alvaro Riaño

If you have MxModel Reflection Module, you can use that to show enum values

 

In 1st retrieve

 

Here ‘Priority’ is the enumeration name. Second retrieve is just retrieving by association $MxObjectEnum/Values.

 

Hope this helps.

answered