Jump to content
  • How to find if a Data Table is configured as On Demand in Spotfire® Using IronPython Scripting


    This article provides a sample script to find if there are any data tables in an analysis which are configured to load on demand

    Introduction

    This article provides a sample script to find if there are any data tables in an analysis which are configured to load on demand

    Code Sample

    # Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Data.DataOperations import *
    from Spotfire.Dxp.Data import *
    
    for table in Document.Data.Tables:
    	sourceView = table.GenerateSourceView();
    	dataOperations=sourceView.GetAllOperations[DataOperation]()
    	for dataOperation in dataOperations:
    		if type(dataOperation).__name__=="InformationLinkOnDemandOperation":
    			print table.Name
    		if type(dataOperation).__name__=="DataConnectionOnDemandOperation":
    			print table.Name
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...