Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sheldonqlik
Contributor II
Contributor II

exportData mashup reply

We have created a qliksense Mashup and we are using the exportData call.

var exportOpts = {

                format: 'OOXML',

                state: 'A',

                filename: 'TEST.xlsx',

                download: true

            };

app.getObject(null, qvObjectId).then(function (result) {

                //now that

                var table = app.table(result);

                table.exportData(exportOpts).then(function (reply) {

                    console.log(reply);

                });

           

            })

When this call is completed from within qliksense Mashup hub, this works because the download is sent to the

tempcontent/{asbasdfasdf} folder of the root domain.

if your qliksense domain is

qlikabc.com/hub

your mashup can be

qlikabc.com/mashup/test

the export file will always be

qlikabc.com/tempcontent/{asdsadfsadf}

But we don't use qliksense mashup HUB.

our site would be

mysite.com/

we use an external IIS to host our mashup.  So calling table.exportData does not work because the URL is incorrect.

It tries to download the url at

mysite.com/tempcontent/{abcasdfasdf}

which doesn't exist.

I thought that the exportData returns a promise so i added the then, unfortunately nothing is returned so I am not able to correct the location of the file, which I realized is stored on the qliksense server.  Is there a flag or anything that is available to figure out what is the export tempcontent info so that I can use it to get the link to downloadable file.

2 Replies
brijeshvma
Partner - Creator
Partner - Creator

Hi Sheldon,

We are doing the same thing. and Facing the same Problem . Excel file are generating but saving on server tempcontent folder. have you got a solution for the same. If yes, kindly confirm what you did to achieve this.

Not applicable

Hi Sheldon,

I have the same problem when I integrated Qlik component in an external web page. exportData generate an URL refer to the webserver from which we call Qlik rather than returning the Qlik url.

Do you have resolved this problem from your side ?