How to Display all Records for the Admin

StatusIDPriorityType
Closed37956CriticalQuestion
ProfileReply
doorscomputersClient

I am having a problem because the records on the attendance class cannot be edited because it is per logged in user. How can I let the admin display and edit all the records ? The code [ListViewFilter("Current User", "[Employee.Oid]=CurrentUserId()", true)] , filters per user , If I am the admin, How can I view or edit the records of all Employees? Thanks!

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello doorscomputers!

Use the following code:
[ListViewFilter("Current User", "Iif(IsCurrentUserInRole('Administrator'), True , [Employee.Oid]=CurrentUserId()", true)]

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US