Jump to content
  • How to check if a data table is linked to source or embedded in Spotfire® Using IronPython Scripting


    Code sample snippet to validate if a given data table is linked to source or embedded.

    Introduction

    Below is a sample snippet on how to validate if a given data table is linked to source or embedded.

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Data import *
    
    table=Document.Data.Tables["BASEBALL"]
    
    found,tableSettings=Application.Document.Data.SaveSettings.TryGetDataTableSettings(table.Id);
    if found and not tableSettings.UseLinkedData :
        print "Table is embedded"
    else:
        print "Table is Linked"
    
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...