Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
pamaxeed
Partner - Creator III
Partner - Creator III

Qliksense API - Check if Server or Dekstop

Hi guys,

is there a possibility to check via an  API Call if the script is running on the server environment or on the personal desktop.

I would like to handle my constants and variables via an external .json file and would like to use them dependent on the environment

For instance there are some methods like openApp which requires different input parameters depending on the environment (server or desktop).

Thanks for your help.

Kind regards,

Patric

2 Replies
Gysbert_Wassenaar

Yep, see the online help: Is the user working in standalone mode? ‒ Qlik Sense


talk is cheap, supply exceeds demand
pamaxeed
Partner - Creator III
Partner - Creator III
Author

Hi thanks Gysbert!

I have used the IsPersonalMode() indeed from the global scope class, like follow:


var global = qlik.getGlobal(config);


global.isPersonalMode(function (reply){

     isPersonalMode = reply.qReturn;

     if(isPersonalMode){

            //Do something

     }

     else

     {

           //Do something

     }

}).then(function(){

     //Do something

});

Cheers,

Patric