Hey Raghavendra,
You can visit this link and here I have answered here, how to make one
https://forum.mendix.com/link/questions/119063
Maybe this helps you.
:)
Hi Raghavendra, is there a specific reason why you wouldn't want to do a refresh? I think it might be a bit difficult otherwise. Can you maybe show the page structure?
You could try to make the second Reference Selector have a dataview context which contains the option from A, and feed this into the datasource microflow of the Reference Selector of B. I think this would make B refresh on changing A, but if this is not the case you could try refreshing the ‘selected’ object A in an OnChange microflow after selecting A.
the “Constraint by” function limits the list of selectable objects in the second reference selector.
Which results in:
A different list in the dropdown
This list is base on references defined in the constraint in combination with the selected option in the first selector.
For example; a car brand has a available set of colors.
So when you select a “Hyundai”, the selectable objects are those who are set for (referenced by) Hyundai > Green, Blue & red
When you would select another brand “Ford” then the selectable objects are those who are set for (referenced by) Ford. These colors can be different, but could contain the same colors.
Thus in short, when changing the first option (reference), the available objects will change. But can contain the same or some of the previous selection. Which will result in one of the following;
When there is only one color per brand available and you want to auto select that color, then you can solve that by using a on-change microflow on the first selector. This microflow will retrieve the selected object (1/car brand) over association and retrieve the referenced object (2/color) of the selected object and set reference between the context object (dataview object) and the retrieved referenced object (2/color)