Clear Marking

#vis and dataTable are script parameters.
from Spotfire.Dxp.Application.Visuals import ScatterPlot
v1 = vis.As[ScatterPlot]()

from Spotfire.Dxp.Data import RowSelection, IndexSet

#prepare to unmark all rows
rowSelection = RowSelection(IndexSet(dataTable.RowCount,False))


#set visualization data table marking based on rowSelection
v1.Data.MarkingReference.SetSelection(rowSelection,dataTable)
Previous
Next Post »