Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
alexmosq
Partner - Contributor III
Partner - Contributor III

Have I opened this document in the Desktop Client or the IE plugin?

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.

1 Solution

Accepted Solutions
alexmosq
Partner - Contributor III
Partner - Contributor III
Author

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.

View solution in original post

5 Replies
ashfaq_haseeb
Champion III
Champion III

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

sudeepkm
Specialist III
Specialist III

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.

alexmosq
Partner - Contributor III
Partner - Contributor III
Author

Thanks, but unfortunately that does not solve the problem. It only works with AJAX clients. IE plugin returns the same as the desktop client.

alexmosq
Partner - Contributor III
Partner - Contributor III
Author

Nice solution! Unfortunately they use the same domain/userid on both platforms.

alexmosq
Partner - Contributor III
Partner - Contributor III
Author

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.