Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I am doing a POC and was wondering what the process is for exporting data via JSON that is already within the Qlik system. I created a small sample app and just loaded some dummy data into it. I was playing around with the Engine API Explorer in the dev tools but couldnt figure out the combination of APIs and macros that would export the dummy data that I put into the app.
Any help is greatly appreciated!
It depends on what "data" you want to retrieve and export. You choices depending on what you are trying to do.
- A ListObject contains the values for a single field.
- GetTabledata returns the rows for a single data model table.
- A HyperCube (generally created with a CreateSessionObject) contains the rows for a set of Dimensions and Measures.
- You can get the data from an existing visualization with GetObject(id) followed by GetHyperCubeData.
There are higher level APIs that wrapper these but it generally boils down to the above.
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
It depends on what "data" you want to retrieve and export. You choices depending on what you are trying to do.
- A ListObject contains the values for a single field.
- GetTabledata returns the rows for a single data model table.
- A HyperCube (generally created with a CreateSessionObject) contains the rows for a set of Dimensions and Measures.
- You can get the data from an existing visualization with GetObject(id) followed by GetHyperCubeData.
There are higher level APIs that wrapper these but it generally boils down to the above.
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
Yes, as far as I know you would need to loop through the table names and call GetTableData for each one.
-Rob
Great. Thanks!