Bernhard Fleischmann Posted February 5, 2020 Share Posted February 5, 2020 I am using multiple filtering schemes on different tabs in the same analysis and need to add buttons to the text area that only reset filters for the particular filtering scheme used on that page. Currently the Reset Button on the first page resets all Filters on all pages, not matter what filtering scheme is used. Thanks, Bernhard Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted February 10, 2020 Share Posted February 10, 2020 You can trigger iron python script to reset only active filtering scheme. https://community.spotfire.com/wiki/how-reset-all-filters-all-filtering-schemes-tibco-spotfirer-using-ironpython-scripting In above iron python script, you can just add condition for active filtering scheme like from Spotfire.Dxp.Data import * from Spotfire.Dxp.Application.Filters import * def resetAllFilteringSchemes(): # Loop through all filtering schemes for filteringScheme in Document.FilteringSchemes: if filteringScheme.FilteringSelectionReference==Document.ActiveFilteringSelectionReference: # Loop through all data tables for dataTable in Document.Data.Tables: # Reset all filters filteringScheme[dataTable].ResetAllFilters() # Call the function resetAllFilteringSchemes() 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