CurrentUser

2
Hello everybody, I'm currently working on an app where user of a certain division can only see data created by someone from that same division. I am trying to do this via XPath constraint. But the problem is that I have no "/-option" with the '[%CurrentUser%]' variable. Meaning I cannot add a forward slash to search for the attribute "divisionName" linked (via the entity Division) to the '[%CurrentUser%]'. There is an association between "Account" (generalization of System.USer) and "Division" (entity of my own domainmodel) Any help is deeply appreciated.   Greetz, Jeroen
asked
4 answers
3

[System.owner/Administration.Account/Administration.Account_Division/MyFirstModule.Division/Administration.Account_Division = '[%CurrentUser%]']

 

This should do the trick i think. Would also like to see the domain model.

answered
1

Hey Albert,

This works like a charm!

I understand my problem, I started with the wrong entity.

Thanks and have a nice day :-)

 

answered
0

What kind of association is there? Can you add a screenshot of both entities with their association?

answered
0

answered