How do you read Iron Python Script Parameter Values
TIBCO Spotfire®

How does one read a passed value within an Iron Python script. I am attempting to use a Link in a visualization that has a parameter from which I will set a Document Property to control the context of the target Page? I found "How to Execute an IronPython Script with Multiple Input Parameters from within Another IronPython Script in TIBCO Spotfire® Using IronPython Scripting" that reads the parameter name and description but stops short of showing how to read the value passed to the script, any examples/ideas? Thx

1 Comment

Hello Michael,

In the example two parameters a visual and a string are passed to the script "MyScript"

The values passed are defined by

visual = Document.ActivePageReference.ActiveVisualReference

and 

MyInputString':'Hello world!'

and In the script "MyScript" there should be two script parameters with the names MyInputString and MyInputVis

Shandilya Peddi - Apr 09, 2018 - 8:06am ::
+ Add a Comment
Login