Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

pamaxeed
Contributor 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

Re: Qliksense API - Check if Server or Dekstop

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


talk is cheap, supply exceeds demand
pamaxeed
Contributor III

Re: Qliksense API - Check if Server or Dekstop

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

Community Browser