Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi to all,
I'm trying to identify the current logged user in my app. My goal is to show a welcome message like "Hello Federico". I'm basing this on the function OSUser(), using subfield to get the current UserId.
The problem is that OSUser() on Qlik Sense Mobile doesn't work as in QSE:
OSUser This function returns a string containing the name of the user that is currently connected. It can be used in both the data load script and in a chart expression. OSUser( ) Note:In Qlik Sense Desktop and Qlik Sense Mobile, this function always returns 'Personal\Me'. |
Is there a workaround to get the current userId in Qlik Sense Mobile? Is there any other alternative to identify my user by login?
Thanks for any advice. Have a nice day
- FR
I'm not aware of any function that will present the username for you, but you could solve this by section access. Creating a data island table containing the user name and then setup a section access reduction on that table. Leaving every user with only one Field value, the user name. Then you could just use the expression =only([user name]) to fetch the user name in the gui.
I'm not aware of any function that will present the username for you, but you could solve this by section access. Creating a data island table containing the user name and then setup a section access reduction on that table. Leaving every user with only one Field value, the user name. Then you could just use the expression =only([user name]) to fetch the user name in the gui.
Hi Vegar, nice workaround! I'll try as soon as possible. Thanks for your help, it was much appreciated.
Best wishes.
FR