Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Nov 4, 2015 10:58:43 AM
Nov 4, 2015 10:58:43 AM
To execute this tutorial you must have QlikView Server and Publisher installed and running. You need also NPrinting Server. Of course, you need related licenses.
In this tutorial you'll learn how to schedule the reload of a .qvw in QlikView Server and then distribute reports based on it by using NPrinting only if the reload finished successfully.
This is an advanced tutorial that requires a good knowledge about developing solutions using NPrinting. We'll use examples from the NPrinting Training environment.
In the "Distribute" tab set C:\ProgramData\QlikTech\Documents as distribute folder and select "All Authenticated Users" in the drop-down menu. Use this document in the source connection of the NPrinting project.
It's very important that you know the tutorial "How to Execute NPrinting Reports by External XML" Request very well.
In the folder C:\NPrintingTraining\ExternalRequestsXML create the text file QVS.processed. The code to insert is:
<?xml version="1.0"?>
<schedules>
<schedule file="C:\NPrintingTraining\NPrintingFiles\NPrintingTraining.nsq" type="job" entityName="Send a Report via Email" />
</schedules>
This will run the job "Send a Report via Email" that must be present in the .nsq file. To create a job refer to "How to Create Jobs"
In the folder C:\NPrintingTraining\ExternalRequestsXML create the file QVS.bat with the code:
move C:\NPrintingTraining\ExternalRequestsXML\QVS.processed C:\NPrintingTraining\ExternalRequestsXML\QVS.request
It will rename the QVS.processed file to QVS.request. When the NPrinting Server find a .request file in the External Requests folder it will execute it.
Click on the green "+" (plus symbol) button on the right corner to create a new task
When activated this task will run the script we saved in QVS.bat
In this way you'll trigger the task to start after the finish of the reload and only if it ended successfully. This task runs the QVS.bat file who rename QVS.processed to QVS.request so NPrinting Server starts to distribute the reports.
Good Guide! Very useful!
I have a suggestion to make the solution even better. Instead of running the batch file with a supporting task, I created a QVW running the EXECUTE command with the same script.
Then I added a variable in this QVW that will control which NPrinting document to start.
The variable value is then controlled by the Publisher-reload job. So in the end I just have one QVW that exists in Publisher that is used for starting all my NPrinting documents.
Regards,
Robert Svebeck
Hello Robert,
Can you please elaborate your solution a little bit more. I have a similar situation and your solution looks elegant. But I am not able to completely understand your solution here.
Thank you,
Sohail
Hi Sohail, sorry for late reply.
I will try to write a whitepaper and post it to the forum.
brg Robert
Hello Robert,
Your QVW idea seems very interesting. Did you get around to putting up a whitepaper for this please?
Thanks
Deepak
Hello Everyone
Does anybody of you know how to do this with QlikView 12.10 and NPrinting 17.3.
That would be very helpful for us.
Thanks
Robert
Hi Everyone,
I have some applications and their scheduling complete at 7:36 AM. And scheduling of N Printing triggers at 7:50 AM. And apps were reloaded successfully at their correct time. But the N Printing doesn't trigger at 7:50 AM. What can be the reason of this issue. Also if I manually run the N Printing task, it is working properly. But automated process is not working.
Thanks and Regards,
Shivani Singhal
Hello Deepak
Not so far, as I heard it should be possible with the NPrinting Version 17.4 (June)
Greetings
Robert
Hi Robert,
Did you got any solution for Distribute Reports after Successful QlikView 12.10 and NPrinting 17.3
Regards,
Renuka S
Hello Renuka
I am sorry for the late reply. Somehow I did not see your message.
So far, we have installed 17.4 (June) on our Server. With 17.4 it is possible to run and stop tasks over APIs which are provided. I think it is not possible with your Version.
Let me know if you have any details on how we can use the APIs for this specific purpose.
Regards,
Robert
Hi Robert ,
Can you share example for how you did this for all NPrinting jobs in single QVW,
it would help alot.