Skip to main content Skip to complementary content
Close announcements banner

exportData method

exportData(options, callback)

This method is used to export data of the underlying Hypercube in OOXML or CSV format.

Information noteThe entire Hypercube will be exported, not just the current data-page.
Since:
  • 2.1

Parameters

Name Type Description
options Object

This parameter is optional.

Properties:

Name Type Description
format String

Data format. Can be one of:

  • OOXML: open XML, default
  • CSV_C: comma separated CSV
  • CSV_T: tab separated CSV
filename String  
state String

Can be:

  • A: all values
  • P: possible values (default)
download Boolean Automatically start download of file (with window.open)
callback Function

This parameter is optional.

Callback function returning the link to the exported file.

Example

Example:  

var qTable = qlik.table(this);

var $exportButton = $( document.createElement('button'));
$exportButton.html('Export');
$exportButton.bind('click', function (  ) {
			qTable.exportData({download: true});
		});
$element.append($exportButton);
		

Example: Using AngularJS in a Qlik Sense visualization extension.


Main script:
...
paint: function ( ) {
		//setup scope.table
		if ( !this.$scope.table ) {
		this.$scope.table = qlik.table( this );
		}
	}
...

In your template:

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!