Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using Qlik sense desktop 3.0. When I export data in Qlik sense desktop,I can right click on the Qlik sense object and export data.
I create a Qlik Single configurator and Qlik mashup page now.
How to Export data from Qlik sense Single configurator or Qlik sense mashup page?
Thanks!
Use Stefan Walther's method, and it works.
add div in html file
<button id="cmdExport" style="display:none;">
Export data
</button>
<div id="QV01" style="position: absolute; top: 50px; left: 20px; width: 200px; height: 200px;" class="qvobject"></div>
add callback function in .js file
require( ["js/qlik", "jquery"], function ( qlik, $ ) {
qlik.setOnError( function ( error ) {
alert( error.message );
} );
var app = qlik.openApp('Executive Dashboard.qvf', config);
app.getObject('QV01','NaKQwM').then( function( vizModel ) {
// Prevent clicking on the button too early
$('#cmdExport').show();
$('#cmdExport').on('click', function() {
vizModel.exportData().then(function( reply ) {
console.log('qUrl', reply);
window.open(reply.result.qUrl);
});
})
});
} );
The link:
look at the link below
Venkata, thanks for your help!
Find some solution and document about this issue, here it is:
extension:
https://github.com/stefanwalther/sense-export
Qlik help document:
Use Stefan Walther's method, and it works.
add div in html file
<button id="cmdExport" style="display:none;">
Export data
</button>
<div id="QV01" style="position: absolute; top: 50px; left: 20px; width: 200px; height: 200px;" class="qvobject"></div>
add callback function in .js file
require( ["js/qlik", "jquery"], function ( qlik, $ ) {
qlik.setOnError( function ( error ) {
alert( error.message );
} );
var app = qlik.openApp('Executive Dashboard.qvf', config);
app.getObject('QV01','NaKQwM').then( function( vizModel ) {
// Prevent clicking on the button too early
$('#cmdExport').show();
$('#cmdExport').on('click', function() {
vizModel.exportData().then(function( reply ) {
console.log('qUrl', reply);
window.open(reply.result.qUrl);
});
})
});
} );
The link:
Hey Haikuo, Stefan Walther's method works for sure, but always save on client Download's folder, that's anyway to choose the folder to save?
Is it possible to specify the directory where the file will be saved?
Hi Jerry,
i didn't found a way, i believe that not possible
Thank you Edurado.
I thought the same. What I concluded doing is changing the default download location to reflect the path I want to store the file. This is achieved at the client browser.