Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
kaseym
Contributor
Contributor

Export Data From Container in Mashup

Is there a way to export/download table data from a container if the container or sheet is embedded in a mashup? I know it is possible in the native Qlik Cloud environment by right clicking on the table within the container, then "Table" > "Download">"Data", but I can't get it to work when the container or the sheet is embedded on another site-- the option isn't in the right click menu.

I'm using the native Qlik Container and trying to export/download data from container objects (a Table and a Pivot Table). 

Labels (1)
1 Reply
Zapparoli
Creator II
Creator II

Hi @kaseym 

You can use the Table API on Qlik for that.

In your JS Code use this: 

	app.getObject('QV1-01', 'KnPft').then(function (reply) {
		$('#export-data-QV1-01').click(function () {
			var qTable = qlik.table(reply);
			qTable.exportData({ download: true });
		});
	});

Where KnPft is your table object in Qlik.

And on the  HTML button you call this id:

<a class="br-button" href="#" id="export-data-QV1-01">
</a>

You can check the ExportData Documentation too:

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/APIs/Content/Sense_ClientAPIs/Capabil...

Let me know if it helps.

-Zapparoli

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics