Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
d_pranskus
Partner - Creator III
Partner - Creator III

table.exportData is not working

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

1 Solution

Accepted Solutions
10 Replies
ErikWetterberg

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

d_pranskus
Partner - Creator III
Partner - Creator III
Author

Hi Erik

Thanks. That's what I was suspecting

d_pranskus
Partner - Creator III
Partner - Creator III
Author

Hi

Downgraded to 3.2 SR3 - the same

ErikWetterberg

Yes the bug was introduced in SR3 and remains in SR4.

Erik

d_pranskus
Partner - Creator III
Partner - Creator III
Author

Thanks, Erik

Anonymous
Not applicable

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

d_pranskus
Partner - Creator III
Partner - Creator III
Author

Thanks Elias

Not applicable

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.

Anonymous
Not applicable

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