Show More / Less Filters
Download: Show More/Less
Introduction
This post will present how to divide your dashboard filters to more and less important filter groups
Steps
STEP 1 - DOWNLOAD AND EXTRACT THE ENCLOSED FOLDER IN THE PLUGINS FOLDER:
C:\Program Files\Sisense\PrismWeb\plugins\dashFiltersPlugin, if the "plugins" folder is not there, please create it. If you are using version 7.2 and higher unzip the contents into your C:\Program Files\Sisense\app\plugins\ folder.
STEP 2 - GO TO THE DASHBOARD’S SCRIPT AND COPY PASTE THE FOLLOWING CODE
dashboard.on('refreshend', function(){
DashFilters({
dashboard: dashboard,
importantFilters: ["[<TABLE_NAME>.<FIELD_NAME>]"]
});
})
DashFilters({
dashboard: dashboard,
importantFilters: ["[<TABLE_NAME>.<FIELD_NAME>]"]
});
})
Step 3 - Code configuration
- importantFilters: ["[<TABLE_NAME>.<FIELD_NAME>]"] - Add the filters that will always be visible. For date fields, add (calendar) after the filter name.
For example:
importantFilters: ["[commerce.Date (Calendar)]","[category.category]"]
Step 4 - Save the script and refresh the dashboard
Updated 02-16-2024
intapiuser
Admin
Joined December 15, 2022