Disable items in an Enumeration

0
I have an Enumeration that has 4 items in it, however there are some circumstances where only 3 of the items are relevant and other screens where a different three are relevant. Is it possible to disable one of the items in the Enumeration based on some logic on the page?
asked
4 answers
4

unfortunately this isn't possible. 

As option you could create a reference entity. After startup, you create for each enum. value an object. This list can be filtered and used to set the value. 

answered
8

There is a widget for that: https://appstore.home.mendix.com/link/app/56183/Finaps/EnumSelector

Regards,

Ronald

 

answered
2

A not so great solution to this would be to use either CSS to not show the options, or to write some jquery that removes the options from the list. 

 

Rene's solution would be the best practice. 

answered
1

Thanks for the replies, thought this may have been the case...will take a look at first option and give it a go.

answered