Showing results for 
Search instead for 
Did you mean: 

How to reset to default filters after refreshing the page.

7 - Data Storage
7 - Data Storage

Hi , I am working on dashboard and I want the filters in dashboard to set to default filters if user reloads the application or do browser refresh, is there any way that I can achieve this.


13 - Data Warehouse
13 - Data Warehouse

I tried this also btw, I am using embed SDK for SISENSE , in documentation they have suggested to pass persist flag value as false so the changes will not persist but this is not happening in my dahsboard even after passing the flag value as false.

8 - Cloud Apps
8 - Cloud Apps

You can try the following code by adding it as a custom script to your dashboard by clicking on the 3 dots on your dashboard, selecting EDIT SCIPT and adding the following code there.  Once added, just save and then refresh your dashboard.

dashboard.on('initialized', () => {
dashboard.filters.update([], {refresh:true, save:true});
console.log('filters deleted!');