How to constraint objects to currentuser in an offline app

1
Hi everybody,   I am building a registration app and  I want to see only the registrations that are associated to me. How can I pass my currentuser in a dataview or how do I constraint the registrations that belong to me.   Regards,   Robert Zuijdam
asked
2 answers
1

Hi Robert,

You can add this constraint in the entity access (access rules) of your registration entity. This will restrict the registrations a user can and will see in the (offline) app.

answered
0

Hi Robert, I ended up resolving it like this: a before commit flow on the entity, where the user's account is retrieved and the association between the entity and account is set. And an XPath constraint on the User's access rule of the entity. Seems to work!

answered