Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions delete_all_rows_of_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Spotfire IronPython Example
# Automatically delete all rows of a table Example
#
# Author: ayyouboulidi
# Date: 02/21/2017
# Reference: http://stn.spotfire.com

from Spotfire.Dxp.Data import RowSelection, IndexSet

# get the target data table
dtTarget=document.Data.Tables["my_Table_name"]

# Remove rows over the data table
dtTarget.RemoveRows(RowSelection(IndexSet(dtTarget.RowCount,true)))