Passing Filters to Accordion in Sisense Dashboards
- Use the “dashboardFiltersSelection” array to specify which dashboard filters should be passed to the target dashboard.
Example: dashboardFiltersSelection: [], // Add your desired filters here
- Set “dashboardFiltersInheritance” to true if you want to apply all filters from the parent dashboard to the target dashboard.
Example: dashboardFiltersInheritance: true,
- Set “widgetFiltersInheritance” to true to inherit widget filters to the dashboard.
Example: widgetFiltersInheritance: true,
- Save the changes to apply the filter settings.
The example script is provided below:
widget.on('ready', function(){
Accordion({
//default: true, // uncomment this to make accordion to open on start
element: element,
widget: widget,
dashboard: dashboard,
dashboardName: '_accrd_myDashboardName',
dashboardFiltersSelection: [], // dashboard filters which should be passed to the target dashboard. For configuration please see section 'Configuration' point two.
dashboardFiltersInheritance: false, //gives the possibility to apply all of the filters from the parent dashboard to the target dashboard
widgetFiltersInheritance: false // set to true if you want to inherit the widget filters to the dashboard
});
})
Starting from L2024.3 it’s possible to configure the same behavior via the new UI. Please refer to this guide for reference: https://docs.sisense.com/main/SisenseLinux/accordion.htm
Conclusion
By configuring the widget script as outlined, you can effectively pass widget filters to an accordion in Sisense dashboards.
References/ Related Content
For more detailed information, please refer to the Sisense Accordion Documentation: https://docs.sisense.com/main/SisenseLinux/accordion.htm. This resource provides additional technical details and configuration options.
0 comments