Forum Discussion

pramod's avatar
pramod
Data Storage
02-06-2023

Auto-resetting the dashboard filters

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

Replies have been turned off for this discussion
  • 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