Jump to content
  • How to get the Marking name and DataLimit Marking names for visual using IronPython script in Spotfire®


    The script allows us to get the Marking name and then DataLimit Marking names for visual.

    Introduction

    The script allows us to get the Marking name and then DataLimit Marking names for visual.

    Code sample

    # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp import Data
    from Spotfire.Dxp.Application.Visuals import *
    
    for page in Document.Pages:
    	print page.Title
    	print "---------"
    	for visual in page.Visuals:
    		if visual.TypeId != VisualTypeIdentifiers.HtmlTextArea:
    			visualization = visual.As[Visualization]()
    			print visualization.Title
    			print "Marking:"
    			print visualization.Data.MarkingReference.Name
    			print "Limit data using markings:"
    			for filtering in visual.As[VisualContent]().Data.Filterings:
    				print filtering.Name
    			print "=========="
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...