I want to show attributes form a different entity on an overviewpage

0
this is my domainmodelI want to show the contract numebr and employee name in an overviewpage of acces gate. this is my microflow: Why is it that at the end of the microflow the contract numberis not connected to the NewAccesgate Object? It is not shown on the accessgate overview page.   I am quite new to mendix so a clear explanation would be very helpfull.   THANKS
asked
2 answers
0

Hello Evelien,

 

Contactnumber in your microflow is a variable not an attribute on an entity. To update the entity acces gate you need retrieve or create an object of the entity contract save this object and then you need to set the association on the object of entity acces gate and save this object.

 

1. retrieve or create contract

2. retrieve or create accesgate

3. Commit contract

4. set contract on the association on the accesgate object

5. commit the acces gate object

 

Hope this helps,

 

Good luck

answered
0

Hi Evelien,

You can use another way for this,

Use a datagrid2 on the page datasource as contract, and the column where you want to show the employee id, you can use association to show the employeeID to which it is associated to.

let me know, if you need further clarification.

Hope it helps!!

answered