Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi QlikSense Experts
I am trying to exportData in a mashup with the following piece of code
app.getObject('QV04','PtJP').then(function(model) {
var $exportButton = $( document.createElement('button')).text('Export').appendTo('body');
var table = new qlik.table(model);
$exportButton.bind('click', function() {
table.exportData({download: true});
});
});
and the table.exportData fails with the following error:
Am I doing something incorrectly? I am on the QlikSense Desktop 3.2 SR4
Thanks
Yes the bug was introduced in SR3 and remains in SR4.
Erik
Hi,
I'm afraid that's a bug in Qlik Sense 3.2 SR4. Let's hope it is fixed in the next release.
Erik Wetterberg
Hi Erik
Thanks. That's what I was suspecting
Hi
Downgraded to 3.2 SR3 - the same
Yes the bug was introduced in SR3 and remains in SR4.
Erik
Thanks, Erik
I had the same problem with 3.4.
I have just tested with the June 2017 version in Desktop and it works! I will have to test in Server now
Thanks Elias
Hi Elias, did this work for you on the server version? I have updated to the latest June 2017 SP1 release and still encounter this issue.
Hi Craig. I have just tested in Server version June 2017 and it works. I have to allow popup so I can download the xlsx file.
You could test by creating a Mashup from the template, drag and drop a chart into one of the container and add this into the .js file:
DIVID is your container and ChartID is the ID of the chart.
app.getObject('DIVID','ChartID').then(function(model) {
var $exportButton = $( document.createElement('button')).text('Export').appendTo('body');
var table = new qlik.table(model);
$exportButton.bind('click', function() {
table.exportData({download: true});
});
});
-Elias