Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Call Qliksense API from javascript

Hi,

I want to call the Qliksense API from javascript to open an app and set certain listboxes to certain values and to export a chart or sheet to PDF. Anyone some basis code available to build from?

3 Replies
Alexander_Thor
Employee
Employee

We currently do not expose any printing api's so you have to reverse engineer ours (unsupported) or roll your own.

You could use this node project as a starting point https://github.com/mindspank/chartcacher

Anonymous
Not applicable
Author

Ok, thanks. I now have a running piece of javascript code in which I connect to Qlik Sense desktop. Problem is that my (netbeans) java program runs on port 8383, and Qlik Sense is on 4848, I know get this error:

cannot load http://localhost:4848/qrs/extension/schema?xrfkey=OF39m5CKB55AiMqT. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8383' is therefore not allowed access. The response had HTTP status code 404. (08:39:18:599 | error, javascript)

How can I allow my code access?

Alexander_Thor
Employee
Employee

You can safely ignore that error.

It is just trying to fetch the list of visualization extensions which you dont need in a mashup scenario.