Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sscaballero
Contributor
Contributor

Get cache from dash before create a filter

Hello!

I am using the Qlik NPrinting API to generate the On-Demand reports, I can create filters to the reports from the API knowing the value that the filter field contains.

The point is that in some moments I need the value of the fields to be dynamic before being created. is there any way to get the report cache filtering by field to get the possible values ​​and  create the filter?

Attached image of how nprinting shows it from the administration panel

1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

What you have shown in screenshot is the cache from metadata generation which can be used to create filters in NPrinting.

On-Demand reports typically do not use those filters from NPrinting though!

Instead you need to obtain current selection state from Qlik Sense app using Qlik Sense API and pass it into OnDemand api as an array of selected in Qlik Sense app fields and values:

https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=90

 

 

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.

View solution in original post

1 Reply
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

What you have shown in screenshot is the cache from metadata generation which can be used to create filters in NPrinting.

On-Demand reports typically do not use those filters from NPrinting though!

Instead you need to obtain current selection state from Qlik Sense app using Qlik Sense API and pass it into OnDemand api as an array of selected in Qlik Sense app fields and values:

https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=90

 

 

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.