Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am able to trigger an NPrint Publish task from a button in my Qlikview app using the following Javascript action:
{
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://mynprintserver.com/api/v1/tasks/ce8uff26-978b-4ff8-8388-1d7887653443/executions', true);
xhr.withCredentials = true;
xhr.send(null);
console.log("Finished")
}
I'm having difficulty trying to understand the Qlik API reference document :
https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=34
to try and create a Javascript as per the Publish Task at the start of my post.
I'd be very very grateful if anyone can advise on how to build a function trigger an ondemand report?
Many many thanks.
Dai
Hi,
You need to login with NTML authentication and retriave the connection token. Then you use that token, that is different for every session, to run the post api.
I wrote a tutorial yesterday https://community.qlik.com/t5/Qlik-NPrinting-Documents/How-to-manage-Qlik-NPrinting-users-by-using-A... and there are othe r conversations here in the community.
Best Regards,
Ruggero
Hi @Senor_Dai,Have you ever managed to realize the solution?
We having issues implementing the new OnDemand QlikView plugin, it lacks several options and features than the "old" v16 version had.
Qlik sadly said al below as working "by design"
{
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://mynprintserver.com/api/v1/tasks/ce8uff26-978b-4ff8-8388-1d7887653443/executions', true);
xhr.withCredentials = true;
xhr.send(null);
console.log("Finished")
}
where to put this script in qlik Front end