8 Replies Latest reply: Mar 7, 2017 4:38 AM by Karthik Mungi RSS

    variables in nprinting

    Neha Srivastava

      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?

        • Re: variables in nprinting
          Daniel Jenkins

          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.

            • Re: variables in nprinting
              Sohail Ansari

              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.

                • Re: variables in nprinting
                  Daniel Jenkins

                  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.

                    • Re: variables in nprinting
                      Karthik Mungi

                      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.

                        • Re: variables in nprinting
                          Daniel Jenkins

                          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.

                            • Re: variables in nprinting
                              Karthik Mungi

                              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.

                            • Re: variables in nprinting
                              Neha Srivastava

                              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

                      • Re: variables in nprinting
                        Karthik Mungi

                        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.