Jump to content

Spotfire - Can we retrieve only selected records in the cursor


Velmurugan Natesan

Recommended Posts

Thanks for the response Gaia Paolini. 

My actual requirement is, I want mark the rows the selected records from table 1 to table 2, I achieved through below script, but still expecting to limit records in the 'cursor'(highlighted line), because I dont want to loop all records let say 5000 records in the table 2, so is there any way to limit only particular records for ex. age >50

for row in DataTableSelection.GetRows(rowsToInclude,cursor):   table 2, let say we have 5000 records, I need limit records is, is there any way to limit?
        for row1 in DataTableSelection1.GetRows(rowMask1.AsIndexSet(),cursor1): # table 1, marked records rows, let say we only 10 marked rows.
              aTag = cursor.CurrentValue
              aTag1 =cursor1.CurrentValue
              t=aTag1.find(aTag)
              if t >= 0 : 
                  rowsToSelect[idx]=True
    idx=idx+1
 
marking.SetSelection(RowSelection(rowsToSelect), DataTableSelection)

Your idea/suggestions would be great. 

Thanks,

Velmurugan

Link to comment
Share on other sites

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...