Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
neha_sri
Creator III
Creator III

variables in nprinting

Hi All,

I have a situation where I have 2 text box and I have set 2  variables on them respectively. My qlikview bar chart is changing on the value of variables but on demand nprinting ppt is not changing correspondingly.

Do anyone have any idea?

8 Replies
Daniel_Jenkins
Specialist III
Specialist III

Hi Neha,

On-demand extension objects cannot pass the value of variables. If you are using the variables in the NSQ and the Connection QVW in the NSQ is the same as your On-demand QVW (with the extension objects on it), make sure you save the On-demand document after you change the variable values and before clicking the Task or Report extension object.

HTH - Daniel.

sohailansari201
Creator
Creator

Hello Daniel,

Actually I found variables do work correctly and their value is passed on properly from On-Demand to the QVW and to the output report.

What I have seen not working is the INPUTFIELD box that allows to type-in and changes the variable value by the end user. In this case the new(changed) value is not passed to QVW in On-Demand.

Thank you.

Daniel_Jenkins
Specialist III
Specialist III

Hi Sohail,

That is exactly what I was trying to say - apologies if it was unclear. Let me try again:

  • The on-demand extension object does not pass variables to the NPrinting Service.
  • If a variable is used in the task, the NPrinting service will pick up the value of the variable as it is in the source QVW at the time the report/task is run.

HTH - Daniel.

Karthik3
Creator III
Creator III

I have a calendar object which sets a variable value based on the user selection. This variable in turn is used to generate an Nprinting report. Users change the variable value on the front end and generate their own On demand Nprinting reports irrespective of what the variable value is in the Source QVW at the time of report task is run.

Daniel_Jenkins
Specialist III
Specialist III

Hi Karthik,

"I have a calendar object which sets a variable value based on the user selection"

So the selection in the calendar object sets the variable value and vice versa right? Again, only current selections can be passed to the NPrinting Server Service - not variables. The current selections might cause the value of the variable in the source document to change but the variable itself is not passed by the extension object.

HTH - Daniel.

neha_sri
Creator III
Creator III
Author

Hi Karthik,

How many values are there in your variables?. If its not more than we have a work around.

Say you have 3 values in variable , so you can clone the nsq report 3 times and pass filter from nsq, (the filter will be the values in your variable), in this way your 3 reports will have 3 different variable value , and call the reports ids corresponding in your qvw based on selection from your qvw.

Please revert if its not clear ..

Regards,

Neha

Karthik3
Creator III
Creator III

Hi Neha,

             I was just saying my solution and not asking a question. Thanks though. My variable is a Monthyear which takes more than 40 values.

Karthik3
Creator III
Creator III

I agree. Maybe this will help someone - The workaround which we need to do in such case is to create a field which takes the values of the variable and the create a trigger on Variable Change to select the particular value of the variable in the field created. Which works perfectly as if we are passing variables.