Jump to content
  • How to list all the Document Properties of an analysis in Spotfire® Using IronPython Scripting


    This article provides code snippet of how to list all the Document Properties of an analysis in Spotfire® Using IronPython Scripting

    Introduction

    This code snippet details on how to loop over the document properties 

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Data import DataPropertyClass,DataProperty,DataType 
    
    print "List of Document Properties \n"
    for prop in Document.Data.Properties.GetProperties(DataPropertyClass.Document):
    	if prop.IsUserVisible and prop.IsUserEditable:
    		print str(prop.Name)+": "+str(prop.Value)
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...