Drop down value filtration

0
Hello, I have a drop down control . I want to exclude the drop down value based on the status . Is this possible to do ? E.g – Drop down – ‘Test1’,’Test2’,’Test3’ I want like if status is blank then all 3 value in drop down  if status is save then exclude test1. if status is approved exclude test 2.  
asked
4 answers
3

Hi Arvind,

When you use a reference selector (dropdown) It is possible to determine selectable objects by Database, XPath or Microflow. You find this in the third tab when you go to the properties of the reference selector (see screenshot).

Good luck!

answered
2

Hi Arvind, 

 

You can try using https://appstore.home.mendix.com/link/app/56183/ this widget in combination with some conditional visibility to restrict enum values. Please make sure you validate the selected value in the microflow saving the object as conditional visibility != security .

answered
0

Maybe the inner workings of the reference set selector improved in a way useful for you. Check the release notes of 7.12:

Association Widget Improvements

We improved how the Mendix reference selectors (reference selector, reference set selector, and input reference set selector) interact with their select page. From now on, if the select widget (data grid, template grid, or list view on the select page) has some non-trivial configuration of what objects to show (for example, an XPath constraint), this configuration is not overridden by the Selectable objects configuration of the reference selector. Instead, the two filters are taken into account. For example, if you create an input reference set selector with selectable objects limited to one satisfying an XPath [Status = 'Done'] and on the select page you place a list view showing only objects satisfying an XPath [Age < 10], the user will be able to only select an object satisfying the combined XPath of [Status = 'Done'][Age < 10].

answered
0

I am not able to use refrence selector for enumeration value. 

answered