exportData method
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
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 state | Details |
---|---|
Introduced | Qlik Sense September 2018 |
Parameters
options
Type: Object
Properties
Name | Type | Description |
---|---|---|
format | String |
Data format. Can be one of:
|
state | String |
Can be one of:
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);
});
});