Jump to content
We've recently updated our Privacy Statement, available here. ×

How can tie a "Reset Filters" button to a particular filtering scheme

Bernhard Fleischmann

Recommended Posts

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.



Link to comment
Share on other sites

You can trigger iron python script to reset only active filtering scheme.


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



# Call the function


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...