Menu
Download Free Trial

set filters on multiples reports

Answered

With dashboard or multiple instances on one page, how to set a filter and apply it to all instances on the page?
example: Select a customer. First instance shows customer sales by year, second instance shows customer sales by month. Use will select a customer, then both instances should have the same filter applied
 

3 answers

Public
Ian Sadovy Flexmonster April 29, 2016

Hello Paul,
 
Thank you for the question.
It’s possible to apply the same filter across multiple instances using Flexmonster API.
Here is the code sample on JSFiddle, it shows how to apply filters from the first instance to the second (video: http://screencast.com/t/cmjPtMmT). 
Please let me know if it works for you.
 
Regards,
Ian

Public
Ian Sadovy Flexmonster April 29, 2016

Paul,
 
Please check the sample that applies filters with a button click – https://jsfiddle.net/iansadovy/fdkgx9cg/ 
Also, please refer to the documentation about getFilter()/setFilter() API calls – http://www.flexmonster.com/api/
Hope this helps.
 
Regards,
Ian

Public
Tanya Gryshko Flexmonster December 7, 2016

Hello Paul and all Flexmonster users,
After the release of version 2.3, we would like to provide you with the updated sample: https://jsfiddle.net/flexmonster/kb0z6ka6/.
Regards,
Tanya

Please login or Register to Submit Answer