Jump to content
We've recently updated our Privacy Statement, available here. ×
  • How to mark all filtered rows in a table using IronPython in Spotfire®


    If you want to mark all the rows in one table that are filtered using filters in active filtering scheme then below code will help to do so.

    Code Sample

    # Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    from Spotfire.Dxp.Data import *
    myTable = Document.Data.Tables["tableName"]
    rowSelection = Document.ActiveFilteringSelectionReference.GetSelection(myTable)
    for marking in Document.Data.Markings:
    	if marking == Document.Data.Markings["YourMarkingName"]: 
    		marking.SetSelection(rowSelection, myTable)



    License:  TIBCO BSD-Style License

    Back to IronPython Scripting in Spotfire Examples:  https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire



    User Feedback

    Recommended Comments

    There are no comments to display.

  • Create New...