Qlik Sense Mobile: Issue using the function OsUser() and SubField(OsUser(),'UserId=',2) in OFFLINE-mode
Article Number: 000056921 | Last Modified: 2018/09/26
Description
Issue:
In Qlik Sense Mobile application, once OFFLINE, wherever the function OsUser() and SubField(OsUser(),'UserId=',2) are used, an error in expression occurs.
Observations:
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.
Explanation:
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.
Environment:
Qlik Sense Mobile
Resolution
Bug HLP-3744
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)