Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there any way to determine whether a user has opened a QV document in the IE Plugin or in the Desktop Client?
There are some objects that I only ant to show if the app is openede via the desktop client.
I tried these commands but they just return the same output regardless of version:
ClientPlatform()
QlikViewVersion()
They seem to distinguish AJAX users, but does not differentiate between desktop client and IE plugin.
OK, I've found a solution.
The DocumentPath() funtion returns different results!
In desktop mode it returns...
"C:\<Path>\MyDoc.qvw"
In IE plugin mode it returns ...
"<MountedFolderName>\<Path>\MyDoc.qvw"
So, I simply check if...
Mid(DocumentPath(), 2, 2) = ':\'
If yes, it means that it is opened in desktop mode.
Hi,
From QlikView help.
ClientPlatform( )
Returns the name of the platform the client is using, for example, Mobile.iPhone.
All mobile clients start with Mobile, a period sign and the type of mobile device. Clients using AJAX will return Browser. Name of browser, for example Browser.Firefox.
Note!
The function will only return the client type for those clients using the QVPX protocol, that is the mobile clients and the AJAX client.I don't think it will return desktop Clients.
Regards
ASHFAQ
what authorization mode are you using?
Mostly when a user opens a document from Server using desktop client then he/she uses his/her domain/userid which may be different if the person is using different domain while accessing the document from the Access Point.
in that case you can identify the user from the domain name.
Thanks, but unfortunately that does not solve the problem. It only works with AJAX clients. IE plugin returns the same as the desktop client.
Nice solution! Unfortunately they use the same domain/userid on both platforms.
OK, I've found a solution.
The DocumentPath() funtion returns different results!
In desktop mode it returns...
"C:\<Path>\MyDoc.qvw"
In IE plugin mode it returns ...
"<MountedFolderName>\<Path>\MyDoc.qvw"
So, I simply check if...
Mid(DocumentPath(), 2, 2) = ':\'
If yes, it means that it is opened in desktop mode.