Jump to content

Recommended Posts

Posted

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

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

Seems like there is no marking that is returned in the below line,

==

marking=vis.Data.MarkingReference

==Can you add the following print statement and see what is the Marking Name,

===

print marking.Name

===If it errors then can you check the type of the visualization where it fails

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