Input reference set selector cant set the Data Source

0
In mendix rapid  crash course 9.7.1 in step 7 Set the Data Source to Department Name using the new association you just created. But my cant set the Data Source :( My entity access My domain model please help
asked
3 answers
2

Hi Peesutsakul Mohsomsakul

                                                       Please check your association Employee_department_security whcih is many to many. I hope it is useful.

answered
1

Hi Peesutsakul,

What type of association do you have between those two entities??

Please check,

it should be  (Employee)*- * (Department).

This way you will be able to choose the Department Name.

 

Hope it helps!

answered
1

Hi Peesutsakul Mohsomsakul,

 

A reference-set selector is intended to select objects in a many-to-many association. You have a many-to-one relation. And this is supporting the functional requirement that each employee can have only one department. The second association is supporting the functional requirement that each employee can have only have the security of one department.  If you want an employee to have the security of multiple departments, you should change the association to many-to-many.

 

For the many-to-one selection, use the reference selector (without “set”)

 

Go make it

 

 

answered