Marking Records using Property Controls


I am trying to use a property control which in an input field has an integer value in order to mark a record on the scatter plot.

I also tried a script to mark the record via action button but I failed.

I managed to select all of the records on the scatter plot which is not my intention.

from Spotfire.Dxp.Data import *

table = Document.Data.Tables["tablename"]
rowCount = table.RowCount
rowsToMark = IndexSet(rowCount, True)

Document.ActiveMarkingSelectionReference.SetSelection(RowSelection(rowsToMark), table)


Does anyone have an idea about how to approach it?


Thank you!


(1) Answer