I want to be able to write some kind of function, that gets a list of the master items that are visualisaitons, is there a way to this using the qlik API. I tried this earlier in the code, just to get the objects and tried to print them out but it does not work:
function GetMasterIcons(){
var app = qlik.currApp();
app.getList('MasterObjectList', function(reply){
if (reply && reply.qAppObjectList) {
var masterItems = reply.qAppObjectList.qItems;
console.log(masterItems);
} else {
console.error('Failed to fetch Master Items.');
}
});
}
Does anyone know how I could grab a list of the mater items?