Jump to content
  • Remove Marked Rows from a Table in Spotfire® Using IronPython Scripting


    This script will remove marked rows from a table.

    Introduction

    This script will remove marked rows from a table.

    Code Sample

    # This script will remove marked rows from a table.
    
    from Spotfire.Dxp.Data import *
    
    # Add a reference to the data table in the script.
    dataTable = Document.Data.Tables["Data Table"]
    
    # Retrieve the marking selection
    markings = Document.Data.Markings["YourMarkingName"].GetSelection(dataTable)
    
    # delete marked rows in the Table
    dataTable.RemoveRows(markings)
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...