Jump to content
  • How to dock Filter panels on active page in different regions (Left/Right/Bottom) in Spotfire® Using IronPython Scripting


    This example provides code to move different Panels on an active page to Left/Right or Bottom regions

    Introduction

    This example provides code to move different Panels on an active page to Left/Right or Bottom regions

    Code Sample

     # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
     
     from Spotfire.Dxp.Application.Layout import PanelRegion, DockingPlacement
     
     # To get the current DockingPlacement
     print Document.ActivePageReference.FilterPanel.DockingPlacement.Region
     
     # To move the panel to the Left
     Document.ActivePageReference.FilterPanel.DockingPlacement = DockingPlacement(PanelRegion.Left,0)
     
     # Browse through all the panels and dock them to left or right or in the bottom region
     mypanels = Document.ActivePageReference.Panels
     for p in mypanels:
         p.Visible = True
         #PanelRegion can take values - Left,Right,Bottom
         if p.Title == "Filters":
             p.DockingPlacement = DockingPlacement(PanelRegion.Right,1)
         else:
             p.DockingPlacement = DockingPlacement(PanelRegion.Left,2)
     

    References

    License:  TIBCO BSD-Style License

    Back to IronPython Scripting in TIBCO Spotfire Examples:  https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...