Created
November 7, 2020 13:04
-
-
Save magikcypress/1870cb397355c2cd986e30be0c3b9f74 to your computer and use it in GitHub Desktop.
Get specific app Qlik Sense
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = qlik.Promise; | |
qlik.getGlobal(config).getAppList(function(list) | |
{ | |
return new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
$.each(list, function(key, value) { | |
if(value.qDocName == "Portail Agent" && value.qMeta.stream.name == "SDI") { | |
var idApp = value.qDocId; | |
//get openApp -- inserted here -- | |
var app = qlik.openApp('' + idApp + '', config); | |
//get objects -- inserted here -- | |
app.getObject('QV01','WxDFtYp'); | |
app.getObject('QV09','sWzX'); | |
app.getObject('QV08','bnSGvE'); | |
app.getObject('QV07','jtns'); | |
app.getObject('QV06','pwHp'); | |
app.getObject('QV05','LawDbEF'); | |
app.getObject('QV04','HqHWqK'); | |
//create cubes and lists -- inserted here -- | |
if ( app ) { | |
new AppUi( app ); | |
} | |
} | |
}); | |
resolve(); | |
}, 1000); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment