cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-resetting the dashboard filters

pramod
7 - Data Storage
7 - Data Storage

Hi Team,

Last time we had opened a ticket for the dashboard autoreseting filter issue.

That time we were using a Windows server, now we have migrated to Linux server but still, we are facing the same issue.

Please let us know the proper solution.

Thank you...

Adding @Reeva Patel <[email protected] 

@Kumar Raja Aluri <[email protected]>

1 REPLY 1

Sijo1995
9 - Travel Pro
9 - Travel Pro

Hi @pramod ,

Dashboard script

window.resetFilters = function(d) {
  //Function to reset the dashboard filters to the default filters.
  var filters = d.filters;
  for (var i = 0; i < filters.length; i++) {
    filters[i].value = filters[i].default;
  }
};

d.on('initialized', function(se, ev) {
  //Reset the filters when the dashboard is initialized.
  resetFilters(d);
});

Thanks

Sijo