List of Objects on Page for current user

0
I am trying to to set an Xpath constraint on a page to show only objects where the attribute Requestor = current user. I am using [Requestor = '[%CurrentUser%]'] which returns the error "Incompatible expression types: String, System.User". What would be the right way to achieve the desired result?
asked
2 answers
1

That means that the Requestor object is not a generalization of the user object. If the requestor is an actual user of the system you should let it inherit from the user object. See documentation here: https://world.mendix.com/display/public/bestpractices/Inheritance+vs.+1-1+association

Regards,

Ronald

answered
0

The Requestor attribute is a String now, but it should be an association to the User entity. Or, like Ronald explained, a generalization of it.

Regards, Matthijs

answered