Jump to content
  • How to enable/disable the TablePlot property 'Allow table data export in Spotfire web clients' using IronPython in Spotfire®


    This example shows how we can toggle the TablePlot property 'Allow table data export in Spotfire web clients' in Spotfire using IronPython scripting.

    Introduction

    This example shows how we can toggle the TablePlot property 'Allow table data export in Spotfire web clients' in Spotfire using IronPython scripting.

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Application.Visuals import *
    
    for viz in page.Visuals:
    		table = None
    		if viz.TypeId == VisualTypeIdentifiers.Table:
    			table = viz.As[TablePlot]()
    		elif viz.TypeId == VisualTypeIdentifiers.CrossTable:
    			table = viz.As[CrossTablePlot]()
    		elif viz.TypeId == VisualTypeIdentifiers.SummaryTable:
    			table = viz.As[SummaryTable]()
    		if table != None:
    			table.ExportDataEnabled = not(table.ExportDataEnabled)
    			print (page.Title 
    				+ " - " + table.Title
    				+ ": "  + str(table.ExportDataEnabled))
     

     

    References

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...