How do you access the username of the current user in XPath?

0
I’m trying to create an XPath that basically says, “Select all course enrollments for courses that are taught by the professor with the same username and the current user (i.e. taught by the current user)”  So far my XPath looks like this: [MyFirstModule.Enrollment_Course/MyFirstModule.Course/MyFirstModule.Course_Professor/MyFirstModule.Professor/p_username = 'professor2'] . How can I change “’professor2’” to the username of the current user?
asked
1 answers
0

To avoid misunderstanding, with ‘username’ you mean the attribute ‘name’ of entity ‘user’, right?

[MyFirstModule.Enrollment_Course/MyFirstModule.Course/MyFirstModule.Course_Professor/MyFirstModule.Professor/MyFirstModule.Professor_User = '[%CurrentUser%]'] 

 

answered