Kai Fu Posted May 27, 2020 Share Posted May 27, 2020 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 More sharing options...
David Boot-Olazabal Posted June 10, 2020 Share Posted June 10, 2020 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: https://community.spotfire.com/wiki/how-set-date-rangefilter-using-ironpyth... https://spotfired.blogspot.com/2014/07/change-date-rangefilters-porgrama... Kind regards, David Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now