B I Posted October 19, 2018 Share Posted October 19, 2018 Hi all, I want to mark all of the rows in a table ("myTable") that match the filters within a filtering scheme ("filtScheme"),. I can mark all rows in my table using: from Spotfire.Dxp.Data import * rowCount = myTable.RowCount rowsToMark = IndexSet(rowCount, True) for marking in Document.Data.Markings: marking.SetSelection(RowSelection(rowsToMark), myTable)but I only want to mark the rows that match the filtering that is applied on that table in a given filtering scheme. How do I do this Cheers, Ben Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted January 2, 2019 Share Posted January 2, 2019 You can use below script: from Spotfire.Dxp.Data import * rowSelection = Document.ActiveFilteringSelectionReference.GetSelection(myTable) #myTable is the datatable script parameter for marking in Document.Data.Markings: marking.SetSelection(rowSelection, myTable) 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