Skip to main content
Announcements
Announcing Qlik Talend® Cloud and Qlik Answers™ to accelerate AI adoption! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik1_User1
Specialist
Specialist

Dynamically pick App ids in mashup

Hi All,

Can we pick app id dynamically based on server, lets says There are two server DEV and Stage.

So can we dynamically pick the app id something like below

IF  server =dev

var app = qlik.openApp('1234', config);

IF server=Stage

var app = qlik.openApp('5678', config);

Labels (5)
2 Replies
ajaykakkar93
Specialist III
Specialist III

hi,

You can use 
window.location.host

to check which url it is to choose the app you need 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

ajaykakkar93
Specialist III
Specialist III

hi,

You can use 
window.location.host

to check which url it is to choose the app you need 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting