Skip to main content Skip to complementary content

exportData method

Information noteSTABLE.

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.

Information noteThe entire hyper cube is exported, not only the current data-page.
Information noteDownload to Excel with enhanced table formatting is not supported via the API.

Version history

Version history
Version state Details
Introduced Qlik Sense September 2018

Parameters

options

Type: Object

Properties

options 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', config);
app.visualization.get('xGhjKl').then(function(vis){
    vis.exportData({format:'CSV_T', state: 'A'}).then(function (link) {
        window.open(link);
    });
});

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!