Jump to content
  • How to delete all rows from a datatable in Spotfire® using IronPython


    This sample provides code to delete all rows of a data table.

    Introduction

    This sample provides code to delete all rows of a data table.

    Code Sample

    # Copyright © 2020. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    #Import Namespace
    from Spotfire.Dxp.Data import RowSelection, IndexSet
    
    #Clear your table designated by 'MyTable' script parameter
    MyTable.RemoveRows(RowSelection(IndexSet(MyTable.RowCount,True)))
    
    #MyTable - Script parameter referencing the data table from which all the rows need to be deleted.
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...