Jump to content

How to Reset All Markings in active page only


Recommended Posts

Hello Krishna,

You can try the below script to reset the marking for visualizations in current active page

from Spotfire.Dxp.Data import *

from Spotfire.Dxp.Application.Filters import *

from Spotfire.Dxp.Application.Visuals import *

marking=None

page=Document.ActivePageReference

for visual in page.Visuals:

if visual.TypeId != VisualTypeIdentifiers.HtmlTextArea:

vis=visual.As[VisualContent]()

dataTable=vis.Data.DataTableReference

marking=vis.Data.MarkingReference

rows = RowSelection(IndexSet(dataTable.RowCount, False))

marking.SetSelection(rows, dataTable)

 

 

 

Based on the Wiki Article,

https://community.spotfire.com/wiki/how-perform-reset-all-markings-using-ironpython-tibco-spotfire

Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...

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