Hi Ralph,
let me know if you have other questions :)
Andrea
Hi Andrea,
Thanks again for your quick response. I dived into it straight away, but could'nt figure it out.
I have 3 entities; Planner, Employee, Teamlead and a generalization entity “Person”. I made an association between “Person” and User (via System > User). Should I have made an association directly between “Employee” and System.User?
The entity “Availability” has an association with “Employee”. There is a NewEdit form for “Availability” in which a reference selector with data source “availability_employee/employee/code”.
Through the access rules of entity “employee” I made a XPatch Constraint [ModuleBeschikbaarheid.Person_User='[%CurrentUser%]'].
I would have thought this would result in the selector only showing up the current user, but this isn't right. I am probably making a mistake in my reasoning.
Kind regards,
Ralph
Some translation:
Beschikbaarheid = Availability
Docent = Teacher
Planner = Employee
Teamleider = Teamlead
Sorry, I see I confused employee with teacher in my last post. Should have made everything in English instead of Dutch :P
Hi Andrea,
Any thoughts on this?
Kind regards,
Ralph
Hi Ralph,
sorry if I didn't answer before, I lost your question,
instead of the association you are currently using I would store the system member Owner on the Availability entity and apply an AccessRule on the teacher UserRole with an XPath like [System.owner='[%CurrentUser%]']
let me know if it works,
Andrea