Forum Discussion
harikm007
06-13-2025Data Warehouse
Hi rholmesminton​ ,
I tried the above script, and it's working well.
One thing to note: make sure your tab names are correct and that the tab names in the 'tabFilterMapping' variable are in uppercase. This is important because the tabber displayed all tab names in uppercase.
Here is the updated script:
widget.on('ready', function(w, args){
$('.listDefaultCSS .listItemDefaultCSS', element).on('click', function(s){
widget.scriptConfig = true;
filter = prism.activeDashboard.filters.$$items.find(el=>el.jaql.title == 'Checklist Type') //Title of filter
//mapping of Tab name and filter item. Here when Tab1 is selected, 'Onboarding' will get selected in Checklists Type filter
var tabFilterMapping = {
'TAB 1':"Onboarding",
'TAB 2':"Advancement"
}
var filterValue = tabFilterMapping[$(s)[0].currentTarget.innerHTML]
filter.jaql.filter = {
"explicit": true,
"multiSelection": false,
"members": [
filterValue
]
}
var filterOptions = {
save: true,
refresh: true,
}
prism.activeDashboard.filters.update(filter, filterOptions)
}) ;
});
- Hari
- rholmesminton06-24-2025Cloud Apps
Thank you for the solution. It does not change the displayed filter value. I had to hide the dashboard filter to avoid confusion for the user. It still displays as Include all regardless of which tab on the tabber is selected.
- DRay06-24-2025Admin
Hi rholmesminton​,
We tested internally and it worked. Can you reach out to support so they can look into this with you? Support Portal | Sisense Community
Thank you.
- rholmesminton06-26-2025Cloud Apps
Will do!