This function works great when the mashup is hosted on the Qlik server, however it fails when it is hosted elsewhere.
I'm seeing a 404 error, and noting that the URL for the temp file is the server where the mashup is hosted, rather than the Qlik server where the temp file is actually being created. If I manually change the server portion of the download URL to the Qlik server, the file exists and downloads fine.
I need to be able to set the URL path for the exportData function. Has anyone encountered and subsequently solved this issue?
Re: Issue with exportData method in mashup deployed away from Qlik Server
The first solution works fine.
Curiously, the second solution was something I'd already tried, but the callback function of exportData does not return anything and so that way does not appear to work as expected. I would prefer to use the Visualization API, so if you're aware of what might be happening there, I'd greatly appreciate any further input.