Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
ljhowell
Not applicable

exportData on server going to /Exports folder - but does not exists

Hello

I am using the .exportData() function.  When the data is downloaded, it came from TempContent.  Now all of a sudden, it is coming from Exports folder which does not exits.

Here is an example of the file path from console.log(replay.qUrl)

/Exports/8c21ca12-f95f-4b7f-b1ee-c3a8d28b9c5d.xlsx

Can someone explain how the exportData file is stored on the server and how Exports folder appeared.

Thanks
The code snipet is below.
          me.exportXLS= [

                ["ticketsbytype","YmubDR"],

                ["ticketsbyproblem","BDxcGUF"],

                ["ticketsbydept","QxJnLNp"],

                ["tickettrend","hZatsK"]

            ];

            me.createExport();

//...... some stuff here

            me.createExport = function() {

                angular.forEach(me.exportXLS, function(value, key) {

                    app.obj.app.getObject('QV'+value[1],value[1]).then( function( vizModel ) { 

                        // Prevent clicking on the button too early 

                        $('#'+value[0]).show(); 

   

                        $('#'+value[0]).on('click', function() {

                            vizModel.exportData().then(function( reply ) { 

                                console.log(reply.qUrl);

                               

                            window.open(reply.qUrl); 

                            });

                    });

                    });

                });

            }

1 Solution

Accepted Solutions
ljhowell
Not applicable

Re: exportData on server going to /Exports folder - but does not exists

Thanks Ragul

After hours of looking, yes, Desktop uses Exports and the server used TempContent.  When I created in Desktop version, then pushed to Server, somehow, the Exports carried over.  I restarted the Server Engine and it started using the TempContent.

I think it is a combination of learning how Qlik works (Desktop vs Server side) and angular coding. 

As of now, exportData() is now working as expected.  Data is being downloaded correctly.

Thanks for your time

Les

2 Replies
Support
Support

Re: exportData on server going to /Exports folder - but does not exists

Are the exportdata() extensions used in Desktop version. Then you may find differences in the temp folder path for Desktop and Server.


Example :

Desktop : Qlik\Sense\Exports\

Server:  C:\ProgramData\Qlik\Sense\Repository\TempContent


"Exported files are temporary and are available only for a certain time span and only to the user who created them."


For more information on ExportData method Refer :

Export the data of a generic object ‒ Qlik Sense

ljhowell
Not applicable

Re: exportData on server going to /Exports folder - but does not exists

Thanks Ragul

After hours of looking, yes, Desktop uses Exports and the server used TempContent.  When I created in Desktop version, then pushed to Server, somehow, the Exports carried over.  I restarted the Server Engine and it started using the TempContent.

I think it is a combination of learning how Qlik works (Desktop vs Server side) and angular coding. 

As of now, exportData() is now working as expected.  Data is being downloaded correctly.

Thanks for your time

Les