Auto refresh is happening when we use reference selectors select using Page option

0
Hello Team, We have 2 reference selectors using select page option(since we have more values we chose select page option).The functionality is, based on the 1st reference selector value the 2nd reference selector values will be changed. This is working using xpath constraints. The problem is , when we change 1st reference selector value, the 2nd one value should be cleared and user should select value from the select page of 2nd reference selector but auto refreshing is not happening when i change 1st field value. Its still showing previous options value. so data getting mapped with wrong values. Can anyone suggest how to achieve this?  Note:  We tried with reference selector select using dropdown, here auto refreshing happening properly. But we need to achieve through page option.   Thanks and in advance!  
asked
2 answers
1

Hi Iswarya,

You can use an On change event on your first reference selector to trigger a microflow that sets the association to empty for the second reference selector. That way if a value for the first reference selector is changed, you can ensure the second reference selector selection is cleared and only the correct options can be chosen. 

 

answered
0

Depending on your domain model you could use the constrained by option, which does exactly what you want https://docs.mendix.com/refguide6/reference-selector#constrained-by

If your domain model doesn't allow you to use it, go for Austin's answer.

answered