Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

h_leppers
New Contributor

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
Employee
Employee

Re: Call Qliksense API from javascript

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

h_leppers
New Contributor

Re: Call Qliksense API from javascript

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?

Employee
Employee

Re: Call Qliksense API from javascript

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.

Community Browser