Explain the logic of why connections *-1 and the attributes of one entity can be selected and not the other way also

0
Hi, I got a question about the option to choose an attribute on a newEdit page of a other Entity. I will give a example below: So what i did is the a data grid of the entity Employe, and the genereted a new page. On this page i can select a text box and select a attribute of the entity Lunch. If i do it the other way when i put a data grid with the entity lunch and generated a newEdit page i see this: On this newEdit page i can't select the attributes of the entity Employee. Can anybody explain this logic why can i select the attribute of the *-1 relation  on one entity and not the other.      
asked
2 answers
2

Mayhan,

Because you can have multiple employees on your lunch, you cannot put the employees as attribute on the page. This is only possible if the association would be 1-1. To be able to modify you employees on the lunch, you can try the datagrid or list-view widget.

 

 

answered
1

See also: https://docs.mendix.com/refguide/associations and https://docs.mendix.com/refguide/reference-selector

answered