Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
QlikWorld 2022, LIVE in Denver CO., May 16-19, 2022. REGISTER NOW TO RECEIVE EARLY BIRD PRICING
cancel
Showing results for 
Search instead for 
Did you mean: 
d_pranskus
Partner
Partner

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
ErikWetterberg

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
Partner
Author

Hi Erik

Thanks. That's what I was suspecting

d_pranskus
Partner
Partner
Author

Hi

Downgraded to 3.2 SR3 - the same

ErikWetterberg

d_pranskus
Partner
Partner
Author

Thanks, Erik

elias_chafloque
Contributor II
Contributor II

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
Partner
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.

elias_chafloque
Contributor II
Contributor II

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