Jonathan Casillas 2 Posted June 18, 2019 Share Posted June 18, 2019 If a data table has 100 rows, but only displays 10 rows due to marking from another visulization. Is there a python script I could use that will only mark these 10 rows that are displayedusing another marking color Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted June 19, 2019 Share Posted June 19, 2019 For more sample IronPython scripts check this Wiki page https://community.spotfire.com/wiki/ironpython-scripting-tibco-spotfire Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted June 19, 2019 Share Posted June 19, 2019 You can use the below script as a reference to get the current Makring selection https://community.spotfire.com/wiki/how-retrieve-data-marking-selection-usi... In the above script once you get the marking selection using below line == markings = Document.ActiveMarkingSelectionReference.GetSelection(dataTable) --- Then you can get the new marking color you want and set the marking === markingName = Document.Data.Markings["YourMarkingName"] markingName.SetSelection(markings,dataTable) ==== Also another useful script reference https://community.spotfire.com/wiki/how-mark-all-filtered-rows-table-using-... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now