The following script serves as a sample for adjusting RangeFilter values by one step up or down from the current selections.
Introduction
Below is a sample script which allows to set the RangeFilter values one step up/down from the current selections
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application import Filters as filters myPanel = Document.ActivePageReference.FilterPanel myFilter = myPanel.TableGroups[0].GetFilter("filterName") rangeFilter = myFilter.FilterReference.As[filters.RangeFilter]() #sets the low range to one step up and high range to one step down rangeFilter.StepLowLimitUp() rangeFilter.StepHighLimitDown() #Sets the low range to one step down and high range to one step up #rangeFilter.StepLowLimitDown() #rangeFilter.StepHighLimitUp()
References
License: TIBCO BSD-Style License
Back to IronPython Scripting in Spotfire Examples: https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire
Recommended Comments
There are no comments to display.