Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Workbench - Return an array of all objects in Qlikview document

I'd like to populate a .net dropdownlist with the IDs of every object on my Qlikview document

Is it possible to iterate through each item in the document with the javascript api? I can't find any examples of this

I'd do this so that a user on the asp.net website could dynamically select which graph they wish to display on their home screen of the website

thanks

Jake

5 Replies
Alexander_Thor
Employee
Employee

Hi Jake,

As far as I am aware you can't. You would need to loop and evaluate each object type, but that's not pretty. 

Good suggestion though, I'll add it as an idea!

Alexander_Thor
Employee
Employee

2 years later but you could call the methods GetAllSheetsAndObjects(callBackFn) or GetAllObjects(callBackFn).

Something like,

Qv.GetCurrectDocument().GetAllObjects(function(obj) {

//work with obj

})

Jason_Michaelides
Luminary Alumni
Luminary Alumni

OR use the - prj folder. XML file for each object in there...

Alexander_Thor
Employee
Employee

Well almost at least as it won't contain objects stored in the shared file.

Not to mention that it seems a bit over the top to parse XML-files, cause I/O operations and granting system access to the application pool identity when the information is already available in the API you are currently operating within.

Just saying

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Just thinking laterally...