Jump to content
  • How to Get Values of the Input Parameters of a Data Function in Spotfire® Using IronPython Scripting


    This article provides a sample IronPython script to get the values assigned to the Input Parameters of an Data Function

    Introduction

    This article provides a sample IronPython script to get the values assigned to the Input Parameters of an Data Function

    Code Sample

    # Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Data import *
    
    dataFunction=None
    for df in Document.Data.DataFunctions:
    	if df.Name=="dataFunctionName":
    		dataFunction=df
    
    
    definition=dataFunction.DataFunctionDefinition
    
    for inputParameter in definition.InputParameters:
    	exists,dfInput= dataFunction.Inputs.TryGetValue(inputParameter)
    	if exists:
    		print inputParameter.Name +" : "+dfInput.Expression
     

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...