Mobile offline - how to retrieve current user entity in Nanoflow?

1
Hello. We are planning to build an offline mobile application, comparing to online it have multiple limitations. So one of the questions is:   How to retrieve current logged in user entity? We will need it according to needs display some associated values directly with particular(current) user.   Thank you in advance.
asked
2 answers
2

Place the xpath restriction on the account entity in the domain model. [id = $currentUser]

in the nanoflow just retrieve the first account and it will be constrained by the xpath.

answered
0

Hello.

Probably you can use Xpath constraint with '[%CurrentUser%]'] restriction directly on entity. User is system entity, and you can’t modify access rules, but option is use associated/generalized entity (like account).  After that when you try to retrive all account from your db, you get list with only one element.

Hope this will help

 

answered