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: 
alessio_qlik
Contributor
Contributor

Variable input slider in Nprinting

Hi,

In my application, there's a slider that dynamically modifies the content of a table using set analysis. For example, Count({<Amount={">=$(=$(v_slider))"}>} DISTINCT FIELD).

I know that variable input doesn't work in NPrinting. What could be the alternative s

Labels (2)
2 Replies
Ruggero_Piccoli
Support
Support

Hi,

Please remember to add the label with the correct version of Qlik NPrinting you are using: the answer could depend on it.

You can use a filter to set the value of a variable. Refer to https://help.qlik.com/en-US/nprinting/May2023/Content/NPrinting/ReportsDevelopment/Static-dynamic-fi...

Best Regards,

Ruggero

 



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @alessio_qlik 

You are cutting corners with the description of your topic as you are not mentioning that you are trying to use OnDemand NPrinting report generation from Qlik Sense which is a key factor to the question!

  1. Variable input works in standard NPrinting reports and the behaviour can be achieved by using variable filters as report or task filters: https://help.qlik.com/en-US/nprinting/May2023/Content/NPrinting/ReportsDevelopment/Static-dynamic-fi...
  2. Variable input will not when used with OnDemand report generation from Qlik Sense as only field selection state (not variable state) is being passed through. 
    1. Obvious workaround is use of field in Qlik Sense data model with values users will be able to apply selections on and which would drive your variable in set analysis. You can autogenerate values in such field during load script. I have described this before in my answers to below topics:
      1. https://community.qlik.com/t5/Qlik-NPrinting/Variable-filters-in-NPrinting-V17/td-p/1347166 where I say "you can build a workaround where in variable you would implement expression based on field selection. Then you can apply selection on field, pass through value from field to variable (therefore modify variable value) which essentially will be reflected in your end-object."

cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.