Jump to content

How do I reset a datetime filter using IronPython script

Kai Fu

Recommended Posts

In my Spotfire dashboard, I have a datetime filter that applies toone of thedatetime type columns of my date table.

I want to create a button, and when clicking on this button, the starting point of the filter would be set to today's date, and the ending point of the filter would be set to "2 weeks from today". I do have a "reset" button, but this button resets ALL of the filters to default, and I want my new button to only reset the "ProposedStartDate" filter to a customized range of 2 week.

How can I implement this functionality for this "Reset to 2 weeks" button

Thank you! I appreciate for any help!

Link to comment
Share on other sites

  • 2 weeks later...

Hi Kelvin,

Have a look at these posts. You should be able to use the code and set the filter values to your desired default values when applying the script:




Kind regards,


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...