benson_lv
10-18-2023Cloud Apps
How to synchronize 2 filters
Hi Guys, The requirement is that i have a dashboard need to access 2 different datasource. The 1st widget(table) is extract data from datasource 1, and there is a filter1: serial number The 2nd wi...
- 10-24-2023
Hello!
Kindly advice you to use 'filterschanged' (https://sisense.dev/guides/customJs/jsApiRef/dashboardClass/#filterschanged) event to develop dashboard script with the following logic:
- when 'filterschanged' is triggered and there is Filter1 in the arguments (can be checked by jaql.dim), update Filters2 filter property to be the same using dashboard object and dashboard.refresh() or native methods to update filters such as filters.update (https://sisense.dev/guides/customJs/jsApiRef/dashboardClass/dashboard-filters.html#:~:text=item-,update,-remove)
Best regards,