Create Custom XPATH System Variable

0
  Hi,   Is there a way to create a new custom system variable? Like the default one provided by Mendix. //Sales.User[id = '[%UserRole_Administrator%]']]   I want to do something like this.  The new variable will be calculated at authentication stage. And that variable I will be using to filter what data a user should be viewing. //Sales.User[name = '[%CurrentUser_Custom_Variable%]']]      
asked
1 answers
1

Hi Jonard,

I don’t think Mendix allows to create custom variable, however, your problem can be easily solved by having a non-persistent entity with one or more attributes. Just assign the value to one of the attributes and it could be accessed during the user session. Make sure to allow only read access to the users.

Regards,

Shekhar

answered