How to make a default value in a Reference Selector

1
Hi I have a Reference Selector and I need to have a detault value selected when the page loads, I try to add the isDefault to the Domain model that I am used. But the component loads with the default empty value. I'm using a microflow for selecteable objects. Mendix version 7.5 Any ideas ? Thanks a lot in the advance.  
asked
2 answers
3

You can create the object with a microflow in stead of the default new button.

Then in the microflow retrieve your default value for the reference selector and in the create object action set the association to this default value (object).

answered
0

Humberto,

Check the microflow that returns the list of selectable objects and see if the default value you want to use is in the list returned by that microflow.  If not, that is your problem. 

Also, I have a question.  You said you set a default value for the reference in the domain model.  As far as I know, there is not a way to do this.  You can set default values for attributes, but not references.  Could you provide more information about how you set a default value for the association in the domain model?

Hope that helps,

Mike

answered