Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an object "mafAlmQ" that is a qType of filterpanel. I'm trying to get a list of all available selections but instead of getting a list, I got this error parameter: 'Sub object path not found'
return global.openDoc(appId).then(async (docs) => {
object = await docs.getObject("mafALmQ");
list = await object.getListObjectData("/qListObjectDef", [
{
qTop: 0,
qHeight: 100,
qLeft: 0,
qWidth: 1,
},
{
qTop: 0,
qHeight: 100,
qLeft: 0,
qWidth: 1,
},
]);
console.log(list);
session.close();
});
Base off the error, I believe that my qPath is wrong and I need to correct it but I don't know how to get the correct qPath. I'm using Qlik on Qlik Cloud and I've seen post that shows me how to get the qPath but it was through qlik sense like this https://community.qlik.com/t5/Integration-Extension-APIs/GetHyperCubeData-how-to-find-the-path-to-a-....
A filterpane doesn't have any "qListObjectDef" properties. The fields added to a filterpane are instead stored as children of the filterpane object. Those children are of type "listbox" and those objects in turn have the "qListObjectDef" structures you are looking for:
The tool used for navigating the object structure in the picture above can be downloaded from this location:
https://community.qlik.com/t5/Qlik-Sense-Documents/Qlik-Explorer-for-Developers/ta-p/1949809
Thanks for replying back Øystein. Since I using a Mac, I wasn't able to run the Qlik-Explorer-for-Developer. Is there a mac executable?
If not, I was able to get the the list by calling getFullPropertyTree with the filterpane object. The result should have a key called Children that contains the object listbox. Next you can grab the qId of the listbox and call getObject(qId) to get the listbox object. Finally run getListObjectData with the listbox object to get the list.
No, it's Windows only.