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

Enabling exportData for anonymous users from mashup

Hello everyone,

We would like to allow anonymous users to be able download data from our visualizations in a Qlik Sense mashup but I have seen in discussion Example of using exportData method that this is disabled by default.  Is there any way to achieve this as I would have thought that this is a fairly common requirement?

Thanks in advance.

14 Replies
rbartley
Specialist II
Specialist II
Author

This was a firewall issue.  However, I learned that when calling the exportData method, it is necessary obtain a new ticket.  I did this by prefixing the response URL with the name of the virtual proxy directory, so that the call is re-directed to the authentication script before exporting the data.  This works fine.  Now I need to look into handling the connections for the anonymous user so that it doesn't close existing sessions.

Anonymous
Not applicable

Hi Richard, I meet the same issue as you.

I am trying to export data from a Qlik sense mashup page, while get "access denied" error.

Is it possible to share your solution?

If you could share your solution step by step, or with screenshot, that will be great.

Thanks so much for your help!

app.getObject('objectid').then(function(model) { 

var table = qlik.table(model); 

table.exportData({download: true}); 

}) 

rbartley
Specialist II
Specialist II
Author

Hello,

To be able to download data you need to be authenticated, even if you authenticate using a generic user.  Are you authenticating?

Regards,

Richard

Anonymous
Not applicable

Hi Richard, thanks for your response!

As the Qlik mashup is published to everyone. It is anonymous access.

Any suggestion?

RooFagundes
Contributor
Contributor

Hello @rbartley I had the same problem, do the tutorial https://youtu.be/2k1OgRLsGQw, the problem of exporting data in a mashup by an anonymous user will be fixed.