How to write xpath for filter the user roles

0
Hello all, I am using reference selector and select using page. If I didn't give any xpath its showing all the user role. And if I given the xpath like '[ApprovalSystem.User_Role_Master_ApproverAccount/Administration.Account/System.UserRoles/System.UserRole/Name='Recommender']' or  [System.UserRoles/System.UserRole/Name = 'Recommender']  but its not showing me the filtered data.   What should I do?
asked
2 answers
0

When you reach userroles in xpath just press ctrl + space scroll down and you will see all  userroles in app.

image.png

answered
1

Instead of [System.UserRoles/System.UserRole/Name = 'Recommender'], use the xpath token provided by mendix for user role [System.UserRoles/System.UserRole/id = '[%UserRole_Recommender%]']

This might solve your issue.

 

answered