2 Replies Latest reply: May 24, 2017 8:42 AM by Les Howell RSS

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

    Les Howell
      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); 

                                  });

                          });

                          });

                      });

                  }