Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Detecting Sense vs View in Script

Is there any solid script technique for determining if a script is executing in Sense or View? The best I've come up with is testing the value of QlikviewVersion() but this strikes me as a little funky in the long term.

-Rob

5 Replies
Not applicable

Hello,Rob!

Could you be so kind and share experience, where  the solution of this problem is required?

Best regards,

Alexa

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP
Author

Hi Alexa,

It's not a situation most people encounter. I have some common script that I use in both QlikView and Qlik Sense. There are some small differences in script between the products. I want to be able to automatically detect which product I'm running in and take a different script path.

-Rob

Not applicable

Thans for your answer,

Best regards,

Alexa

Not applicable

You can specify a variable defining the environment prior to the code that includes the script.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP
Author

Thanks for the suggestion Andre. I'm looking for an automatic mechanism. What I've settled on for the time being is:

LET .v.QlikProduct = if(subfield(QlikViewVersion(),'.',1)>6, 'VIEW', 'SENSE');

I'm relying on Sense version not being > 6 for quite some time.

-Rob