dependent drop down

0
I have two dropdown one is division and one is business unit whose value I get from enumeration Now I want If I choose one value from division ,business unit value should be shown according to division  For ex If I choose Instruments from division then ENT and IVS should be shown in business unit drop down.
asked
3 answers
1

Hello Srijan,

You can set in widget property 

For example:

If you want to do choose Instruments from division then ENT and IVS should be shown in business unit drop-down so u have to do the following steps:

1. Go to business property widget 

2. Open visibility and set ‘based on attribute value .

3. Select attribute in drop down attributes

4.Tick based attribute value and then click OK.

      Above screenshot or example will help you ….

Might be this will be helpful.

If you found my answer helpful please mark it as accepted, it would be great for me...

 

answered
0

You are looking for the constrained by function. See documentation here: https://docs.mendix.com/refguide7/reference-selector

For some reason this explenations is only in the docs for Mx7 but it still is valid for Mx9.

Regards,

Ronald

 

answered
0

Srijan,

You will need to create two entities, one for division and one for business unit and they need to have an association based on your business case, (looks like one Division can have many BusinessUnits, so one to many Division_BusinessUnit)

You enter the values in these two entities and then use these two entities for reference selector, where the second reference selector for BusinessUnits would have XPath constraint.

-Shekhar

answered