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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik1_User1
Specialist
Specialist

Qlik export API for container object

Hi All,

Is there any Qlik API that support export from container object.

Please suggest.

Labels (1)
2 Replies
vidyutverma
Partner - Contributor III
Partner - Contributor III

Yes, Normal JSON Engine API should work. You have to get the container, and then do second query to get all the children objects. Check the documentation of https://help.qlik.com/en-US/sense-developer/May2021/apis/EngineAPI/services-GenericObject-GetLayout.... 

Qlik1_User1
Specialist
Specialist
Author

@vidyutverma can you please share one sample code, currently I am using below API and logic.

exportdatas('chart1','wdmg')

//here wdmg is object id of container.


function exportdatas(divid,objectid){

app.getObject(divid,objectid).then(function(model){

var d = app.table(model);
d.exportData({'format':'CSV_C','state':'A','filename': 'exportdata.csv','download': true})

});