Respective courses in dropdown

0
Hello Experts,         I have a requirement like 2managers has 5 employees each. Each manager adds courses in their course entity. But when employees of manager 1 logins they should only their manager courses but employees of both managers are getting the courses of manager 1 and manager 2 in dropdown.        How can i show their respective managers courses in the dropdown(reference selector). My domain model is like Manager entity, employee entity and Course entity.      Thanks in advance.
asked
1 answers
0

Hey

You can add an xpath constraint for this in your entity access rules where you can constrain the data an employee gets.

 

Read more here: 
https://docs.mendix.com/refguide/access-rules/#:~:text=An%20XPath%20constraint%20can%20be,all%20objects%20of%20the%20entity.

Hope this helps!

answered