Namespace: qlik
The Root API is the external interface to Qlik Senseāit provides methods to open apps, get a reference to a current app, or set the specific language. In summary, it's the root of all other subsequent hierarchical API calls. Two examples will illustrate how it works:
- Set a specific language: This example showcases how to programmatically set a particular type of language within Qlik Sense:
require(['qlik'], function(qlik) {
//set the language to something else than default language
qlik.setLanguage('es-EN')
});
- Get a list of available apps: This example retrieves a list of all available apps and writes them on to the console log:
require(['qlik'], function(qlik) {
qlik.getAppList(function(list){
var str = "";
list.forEach(function(value) {
str += value.qDocName + '('+ value.qDocId +') ';
});
console.log(str);
});
});