Qlik Sense Mobile: Issue using the function OsUser() and SubField(OsUser(),'UserId=',2) in OFFLINE-modeArticle Number: 000056921 | Last Modified: 2018/09/26
In Qlik Sense Mobile application, once OFFLINE, wherever the function OsUser() and SubField(OsUser(),'UserId=',2) are used, an error in expression occurs.
In Qlik Sense Desktop or in Qlik Sense Mobile in offline mode, OsUser() always returns 'Personal\Me'. So, as there is no ‘UserId=’ returned , there is no ‘UserId=’ for the subfield() to pick up ==> there will be no 2nd subfield.
When engine is running in Qlik Sense Mobile (in offline-mode) or Desktop the concept of a user doesn’t exist anymore because it is no longer connected to a user directory and it doesn’t require authentication to work.
This is how it is designed and that is why OsUser() return personal/me.
Qlik Sense Mobile
A documentation will be updated to include Qlik Sense Mobile (https://help.qlik.com/sv-SE/sense/June2018/Subsystems/Hub/Content/Scripting/SystemFunctions/system-functions.htm?id=859#OSUser)
Have a Question?
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.