This article explains how to set the filtering scheme in the filter panel of the current page using IronPython
Introduction
This article provides a sample IronPython script to set the filtering scheme in the filter panel of the current page
Code Sample
# Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Filters import * fScheme=None # Get the required FilteringScheme for fs in Document.FilteringSchemes: if fs.FilteringSelectionReference.Name == "Filtering scheme": fScheme= fs # Get the filter panel of current active page myPanel = Document.ActivePageReference.FilterPanel myPanel.FilteringSchemeReference=fScheme
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.