Jump to content
We've recently updated our Privacy Statement, available here. ×
  • How to Set the FilteringScheme in Current Page in Spotfire® Using IronPython Scripting


    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

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...