Jump to content

I need to get the first marked row that appears in my tableplot visualization.


Luca de Falco 4

Recommended Posts

Hi,I need to get the first marked row that appears in my tableplot visualization.The sort order it's not alphabetical,with this code I can take the first marked row in a alphabetical order.

 

from Spotfire.Dxp.Data import DataValueCursorfrom Spotfire.Dxp.Application.Visuals import TablePlot

table=visual.As[TablePlot]()dataTable=table.Data.DataTableReference

myCursor = DataValueCursor.CreateFormatted(dataTable.Columns["MyColumn"])

markedRows = Document.Data.Markings["Marking"].GetSelection(dataTable).AsIndexSet()

for markedRow in dataTable.GetRows(markedRows, myCursor):

print myCursor.CurrentValue

 

How can I get the first marked row highlighted in my visualization

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...