Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

d_pranskus
Contributor 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

Tags (2)
1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: table.exportData is not working

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

Erik

Erik Wetterberg
https://extendingqlik.upper88.com/
10 Replies
erik_wetterberg
Honored Contributor

Re: table.exportData is not working

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

Erik Wetterberg
https://extendingqlik.upper88.com/
d_pranskus
Contributor III

Re: table.exportData is not working

Hi Erik

Thanks. That's what I was suspecting

d_pranskus
Contributor III

Re: table.exportData is not working

Hi

Downgraded to 3.2 SR3 - the same

erik_wetterberg
Honored Contributor

Re: table.exportData is not working

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

Erik

Erik Wetterberg
https://extendingqlik.upper88.com/
d_pranskus
Contributor III

Re: table.exportData is not working

Thanks, Erik

elias_chafloque
New Contributor II

Re: table.exportData is not working

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
Contributor III

Re: table.exportData is not working

Thanks Elias

Not applicable

Re: table.exportData is not working

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
New Contributor II

Re: table.exportData is not working

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

Community Browser