Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Vincent23
Partner - Contributor
Partner - Contributor

GetListObjectData how to find qPath on qlikCloud

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-....

 

Labels (5)
3 Replies
Øystein_Kolsrud
Employee
Employee

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:

Filterpane.png

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

FleetSuccess_nposton
Partner - Contributor
Partner - Contributor

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.

 

Øystein_Kolsrud
Employee
Employee

No, it's Windows only.