Jump to content
  • How to show/hide filters with Iron Python scripting in Spotfire®


    This sample illustrates how filters can be hidden programmatically using Iron python scripting

    Introduction

    This sample illustrates how filters can be hidden programmatically using Iron python scripting

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Application import PanelTypeIdentifiers
    for p in Document.Pages:
     for panel in p.Panels:
      if panel.TypeId == PanelTypeIdentifiers.FilterPanel:
       for group in panel.TableGroups:
        if group.Name == "Data Table":
         for filter in group.FilterHandles:
          if filter.FilterReference.Name == "Sales":
           filter.Visible=not(filter.Visible)
     

     

    References

     

    License:  TIBCO BSD-Style License

    Back to IronPython Scripting in Spotfire® Examples


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...