How do you access the username of the current user in XPath?
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?
To avoid misunderstanding, with ‘username’ you mean the attribute ‘name’ of entity ‘user’, right?