Jump to content
  • Below is an IronPython script that resets all markings in the current document.

    Introduction

    Below is an IronPython script that resets all markings in the current document.

    Code sample

    # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Data import *
    from Spotfire.Dxp.Application.Filters import *
    
    def resetMarking():
            # Loop through each data table
            for dataTable in Document.Data.Tables:
                # Navigate through each marking in a given data table
                for marking in Document.Data.Markings:
                    # Unmark the selection
                    rows = RowSelection(IndexSet(dataTable.RowCount, False))
                    marking.SetSelection(rows, dataTable)
    
    # Call the function
    resetMarking()
     

    References

    License:  TIBCO BSD-Style License

     

     

    • Like 1

    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...