How can I create an X-Path that will match the attribute of the current object to an attribute a list item?

1
I have a “My Tickets” page that is a list view that pulls in from the “Ticket_Requests” entity. I want to constrain it so that it only pulls in the tickets that have the same Employee name field as the currently logged in user. The employee name attribute is a reference in the Ticket_Requests to an Employee entity.  I currently have this but it is not working:    Please help, thank you!    
asked
2 answers
3

Hi Rosecela,

To use the [%CurrentUser%] token, your Employee object should be generalized with Administration.Account

Then, you can use the below xpath to retrieve your tickets

[MyFirstModule.TicketRequest_Employee_2/MyFirstModule.Employee/id=’[%CurrentUser%]’

 

Hope this works for you, Thanks!

answered
1

hi, 

your xpath constrain should be something like 

[Module.A_B/Administration.Account/id='[%CurrentUser%]']

Let me know if its not understood.

Thanks 

answered