exportData method

Note: STABLE.
This API is reliable and breaking changes are unlikely.

qlik.app.visualization.exportData(options)

Exports data of the underlying hyperCube in OOXML or CSV format.

Note: The entire hyper cube is exported, not only the current data-page.

Version history

Introduced Qlik Sense September 2018

Parameters

options

Type: Object

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
state String

Can be one of:

  • A: all values
  • P: possible values

Default is P.

Returns

A promise of the file location URL.

Example


var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
app.visualization.get('xGhjKl').then(function(vis){
    vis.exportData({format:'CSV_T', state: 'A'}).then(function (link) {
        window.open(link);
    });
});