Jump to content
  • How to Reset Markings for all Active Page Visualizations in Spotfire® Using IronPython Scripting


    This articles shows how to Reset Markings for all Active Page Visualizations in Spotfire® Using IronPython Scripting

    Introduction

    Below is a sample script to unmark all the visualizaiton in the active page

    Code Sample

     # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
     
     from Spotfire.Dxp.Data import *
     from Spotfire.Dxp.Application.Filters import *
     from Spotfire.Dxp.Application.Visuals import *
     
     marking=None
     page=Document.ActivePageReference
     
     for visual in page.Visuals:
         if visual.TypeId != VisualTypeIdentifiers.HtmlTextArea:
             vis=visual.As[VisualContent]()
             dataTable=vis.Data.DataTableReference
             marking=vis.Data.MarkingReference
             rows = RowSelection(IndexSet(dataTable.RowCount, False))
             marking.SetSelection(rows, dataTable)
     

    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...