-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Aran Nathanson Oct 4, 2017 4:13 PM (in response to Francisco Martinez Sarrion)Currently you need to use the APIs.
Here's some documentation and a project:
Take a look at the event chaining video and slides 9-18.
Best
Aran
-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Francisco Martinez Sarrion Oct 5, 2017 2:16 AM (in response to Aran Nathanson )Hi Aran.
Thank you for the quick response.
I can't access to that URL to see the documentation. My user is not allowed to do that:
That didn't work
We're sorry, but francisco.martinez@freixenet.es can't be found in the qliktechnologies365-my.sharepoint.com directory. Please try again later, while we try to automatically fix this for you.
Any suggestion, please?
Kind regards.
-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Ruggero Piccoli Oct 5, 2017 3:00 AM (in response to Francisco Martinez Sarrion)I suppose Aran want to share with you the attached document.
Other information about the APIs are on the official help site Extending Qlik NPrinting ‒ Qlik NPrinting
Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.
-
API Enablement_Final.pptx 5.2 MB
-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Francisco Martinez Sarrion Oct 6, 2017 3:49 AM (in response to Ruggero Piccoli )Hi.
Thank you.
I understand now that there is a way to trigger NPrinting tasks through the NPrinting API.
Please, take into account that we use Qlikview, and we have Qlik Management Console.
If I'm not wrong these are the steps I have to follow from now on:
1.- Make a javascript file with the call to the task id(This file we'll run from (QMC-System-Supporting Tasks-External Program):
- The javascript code:
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://172.16.12.223:4993/api/v1/tasks/98585114-89e4-4f5b-963a-6ad00c4387ad/executions', true);
xhr.withCredentials = true;
xhr.send(null);
2.- Run the javascript file from QMC
In order to do this we are testing it with Postman, a GET call:
https://172.16.12.223:4993/api/v1/tasks/98585114-89e4-4f5b-963a-6ad00c4387ad
but I always get an {"code":403,"message":"User has no rights to access the resource"},
regardless I have granted access to all the places that are supposed to do:
- users in Nprinting with domain\account,
- Security Roles with all the possible permissions,
- Nprinting-Admin-OnDemandSettings as a trusted site for my server.
- Report with Enable On-Demand and API report generation checked.
Could you help us with this issue?
Thank you.
-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Francisco Martinez Sarrion Nov 10, 2017 2:57 AM (in response to Francisco Martinez Sarrion)I was missing the URL login call in order to log into NPrinting server but we finally get a solution.
I summ up the steps I did:
1. Create a Supporting task in QMC (this depends on the task we want to upload)
1.1. This task executes the bat file
1.1.1. Inside the bat: it opens Chrome and call the HTML file
1.1.1.1. Inside the HTML there is the javascript code that makes 2 URL calls
1.1.1.1.1. URL login call
1.1.1.1.2. URL POST call to execute the NPrinting task
1.1.2. The bat file closes Chrome
-
-
-
-
Re: NPrinting Sept2017: is there a way to trigger a NPrinting task from Qlik Management Console
Johann Choucq Nov 20, 2017 10:49 AM (in response to Aran Nathanson )Hi Aran,
thank you for your informations.
Will external request be a feature on the roadmap of NP17 (like xml request in NP16) or the solution will be necessarily a specific developpement with the APIs ?
Best regards.
Johann
-