I want to set up a distribution from NPrinting that sends exactly once when a variable in my qvw is set to 1 (which happens when a certain data condition is met in the document). I don't care what time the distribution goes out, just as soon as the variable equals 1. Is there a way to set this up?
Essentially, I want the NPrinting task to refresh the qlikview document every 15 minutes, check that variable, and if it's 1, send the distribution and stop refreshing after that.
Won't the second task continue to run every 15 minutes after the variable is set to 1?
It will be useful to know how often the task should run. If it's maximum once a day I suggest adding a second control, say a variable vDateRun which holds the value of the date when the original variable vRun is set to 1
Pseudo code something like:
IF vRun = 1 AND vDateRun = Today() THEN
vRun = 0 // NPrinting will not send out the reports because that's already been done today
IF vRun = 1 and vDateRun <> Today() THEN
vDateRun = Today() // NPrinting will send out the reports this iteration
// Next iteration the previous IF will be satisfied as long at the vDateRun is still today