Product: TIBCO Spotfire®
How to Reset All Markings using an IronPython script?
This article provides an example of how to Reset All Markings in an analysis file using an IronPython Script.
The following is an example IronPython script which Resets All Markings within a given document.
#Import required libraries
from Spotfire.Dxp.Data import *
from Spotfire.Dxp.Application.Filters import *
# Loop through each data table
for dataTable in Document.Data.Tables:
# Navigate through each marking in a given data table
for marking in Document.Data.Markings:
# Unmark the selection
rows = RowSelection(IndexSet(dataTable.RowCount, False))
# Call the function
The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script in accordance with your implementation specifications that best suit your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.
Reset Marking, Reset All Marking, ironpython, python, script