Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
How can i evaluate this expression? i.e. check that it is giving the expected result
The variable contains a date/time in number format.
What expression can i write to check if it matches? e.g =num(now())?
Thanks,
Colin
no, I was not talking about admin rights. I was talking about dedicated role/permissions for your requirements which I dont see problem with as it falls under different criteria than import task:
Regarding your questions:
I would encourage you to expose the variable you are trying to use in your condition in a report.
When it comes to second question "When is the data transferred from the Qlik app to the nPrinting console i.e. such as a variable value? Is it only when the connection is refreshed?" normally you wouldn't need to regenerate metadata as variables and data should be updated as soon as app is updated and in Qlik sense memory.
That seems reasonable.
Can you show us or describe in detail the entire rule?
Check the underlying variable formula and use that as the expression (right side of the rule in your image above).
Better yet,
Provide a detailed description of the rule you are trying write and the requirement overall, that you are trying to achieve.
Also mention
NPrinting and Qlik SEnse (or QlikView version)
Is your report a Pixel Perfect, MS Office or HTML report?
Has it worked before or is this a new condition.
Have you successfully used conditions in the past or is this a first attempt?
For more information about NPrinting conditions, visit https://help.qlik.com/en-US/search/?q=conditions
Kind regards.
Hi,
The problem is how can a Qlik Sense App owner trigger a nPrinting task i.e. an ad-hoc task run. The task will be to send an email with a HTML report in the body. For the moment, I am simply trying to get the email to send with this particular condition/trigger combination.
The app owner is not a developer. We have built the app for them.
For various reasons an nPrinting Task may need to be delayed, and the question is how can we give that "power" to the app owner to dictate when the next task run is. this is composed of both date and time. there will be option to change the time in 30 min increments e.g. change the next run time from 10 May 2023 15:00 to 10 May 2023 15:30.
The current proposed solution is:
Excel file on Sharepoint with a list of dates/times for the next scheduled tasks.
The next run time is fed into a variable in the Qlik app as a number.
This variable feeds into nPrinting.
nPrinting is triggered to run every 15 mins.
A condition / rule is set-up in nPrinting to check the nPrinting system time against the variable value. If TRUE the nPrinting task runs.
This works if Variable = Constant.
However what I am trying to do use an Expression instead of a Constant i.e. Variable = Expression
No matter what I try as an Expression, with/without the equals sign, it will not work as a condition. The Expression is = floor(now(),'1:00')
To improve the chance of both sides of the equation matching, both are rounded down to the nearest hour and the number of events in the trigger set to 1.
Help gratefully appreciated.
Hi Frank_S
Did you get a chance to review the response?
Thank you,
Colin
I think I understand your question but I could be wrong. Let me give this a shot.
Requirement: You want to enable a user that owns a Qlik Sense app to execute an NPrinting Publish Task
Is this correct?
If so, I would rather suggest that to do this by creating a QVF app that contains Nprinting API's such as the app attached.
You will need to be a programmer or have a programmer on your team to configure the API in the load script found in the app attached if you need further customization.
You can use built in qlik rest get and post connections
Then enable the user to perform an app reload for this dedicated Publish task reload app from the Qlik Sense hub.
Now to enable reloads of an app from the hub, you will need to have Qlik Sense version August 2022 or higher and configure reload availability in the Qlik Sense hub.
For more information on NP APIs see the following links:
Hope this helps!
Hi
I think we are overcomplicating this. There are 2 solutions Fully automated and manual
1. We can use task chaining as @Frank_S mentioned and it is very easy to set it up (10 min job). In addition to all the steps he provided I supply NPrinting.qvs which is basically set of ready to use, "baby-simple" Qlik View/Sense script precedures which can be used to simplify the Qlik Sense app, which will be used as trigger: https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
or
2. As far as I understand it is a matter of allowing a user to trigger particular task manually. Why dont you just create a special role for that user to be able to access NPrinting admin console, see only that app and run publish task from directly from there?
Hi both,
Thank you for your responses.
Yes in effect it is a manual solution.
The end user has the control as to when the nPrinting task is run.
Both of the solutions above require admin rights, which unfortunately is not in my gift. I had this issue before with "Import Task" when trying to import a list of email address for nPrinting. Admin access was not granted. Instead I rolled the email address into a variable in Qlik and that works fine -> although some email address have a single quote mark in them which was an interesting challenge.
Going back to the original ask....
1: is it possible to evaluate the expression in the box above? In qlik its straight-forward, just use a chart such as a "text and image" and see the result. In nPrinting, I do not know if the expression is being evaluated as i require.
2: When is the data transferred from the Qlik app to the nPrinting console i.e. such as a variable value? Is it only when the connection is refreshed?
thank you
no, I was not talking about admin rights. I was talking about dedicated role/permissions for your requirements which I dont see problem with as it falls under different criteria than import task:
Regarding your questions:
I would encourage you to expose the variable you are trying to use in your condition in a report.
When it comes to second question "When is the data transferred from the Qlik app to the nPrinting console i.e. such as a variable value? Is it only when the connection is refreshed?" normally you wouldn't need to regenerate metadata as variables and data should be updated as soon as app is updated and in Qlik sense memory.
Suggestion number 3 worked 🙂
Now that i have confidence in the process, it can be refined... and the end user can control the process via MS Teams. There are a number of files for the app in there, so it keeps things simple for them.
The "recipe" is as follows:
In the Qlik Variable UI, a variable was created like this:
In nPrinting, under Conditions >> Rules, this was added
A Task trigger was set-up, to run every min, but to End when Event Count is 1.
As suggested, the variable was added to the body of the email to test