Get the name of currentUser

0
Hello Everyboby,   How can I use the name of the current user in an xPath constraints to filter a list view ?
asked
3 answers
4

Omar,

You can use the CurrentUser token in XPath as to retrieve an object as follows:

Or if you want to compare the Name to a string, you can do the following:

Hope that helps,

Mike

answered
1

I’m trying to achieve the same thing, but it doesn’t work.

CurrentUser.Name has values which match with TeamMember_Id, from a data standpoint everything is fine.

Any sugestion?

answered
0

If you want to check something for the current user you have keywords. See documentation here: https://docs.mendix.com/refguide7/xpath-keywords-and-system-variables

So if you have a reference between notification and User the xpath would be something like [MyFirstModule.Notification_User = '[%CurrentUser%]']

Sometime when going over a reference you need to go to /id ='[%CurrentUser%]'

Regards,

Ronald

 

answered