Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Re: display all selections with getfieldselections

It may not be in filter selections for many reasons:

  • you could have "typo" in your NPrinting filter
  • you could use wrong filter type ("numerical value is", "evaluate", "value is") in your NPrinting filter
  • field could be loaded as "Dual" type and can require numerical value is filter
  • there could be "whitespaces" in your text - trimming it could solve issue

these few are just from top of my head

You have never shown us how you create your NPrinting filter - maybe problem sits there? 

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.
Highlighted
Contributor III
Contributor III

Re: display all selections with getfieldselections

I don't use a nprinting filter.  It is an nprinting report on demand that is started from the qliksense app and should include the filters that are used in the qliksense app

Highlighted

Re: display all selections with getfieldselections

Ok. Well - you should have said that you are using OnDemand in the first place as filters are passed differently there. That changes completly our conversation.

So in this situation OnDemand extension passes filters to NPrinting as an intersection of all applied filters. That is why you only see in your current selection box only values which are "GREEN" on your filter panes at the time when you generate report. In your case value "INVALID" is actually excluded from selection.

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.
Highlighted
Contributor III
Contributor III

Re: display all selections with getfieldselections

sorry that I forgot to mention that it is an on demand report.  Is there any solution to show what is selected in nprinting?

Highlighted

Re: display all selections with getfieldselections

well - it will no tbe possible to show that "INVALID" is selected but not available in current selection.

Instead you can change in Qlik Sense the way you present your current selections to only show actually available values.

For example like: Concat(Distinct INFORM_COMP_INFORM_COMP_TYPE, ', ') 

 

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.
Highlighted
Employee
Employee

Re: display all selections with getfieldselections

Hi,

I did some tests and I always have the same results in the On-Demand generated report and Qlik Sense app. 

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.
Highlighted

Re: display all selections with getfieldselections

Hi Ruggero @Ruggero_Piccoli,

 

Try testing follwoing scenario:

Create an app which will have a dates and week day names like: Mon,Tue,Wed etc.

Then apply selcetions:

  • for weekday select few, lets say: Mon,Tue,Wed
  • for Date field select 1 Date, lets say: 27/05/2019

now - for this selection directly in Qlik Sense result of GetCurrentSelections function will be:

  • Weekday:  Mon,Tue,Wed
  • Date: 27/05/2019

However if you run OnDeman report and have GetCurrentSelections NPrinting formula in it it will evaluate differently and it will show:

  • Weekday:  Mon,
  • Date: 27/05/2019

The reson for it seems to sit in how selections are passed and applied via API.

It would be great to hear your thoughts after this test. 

Thanks

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.