Jump to content

How do you return the output of python data function to an Iron python Script after passing a value to the input parameter of the data function

Kobe Young

Recommended Posts

I am trying to usea self made data funtion called "StringToArray" which takes a string of numbersand parces through it to output an array of floats in an Ironpython (IP). I used the "How to Pass Value to an Input Parameter of a Data Function in TIBCO Spotfire using IronPython Scripting"to pass the string to the data function but that examples give no info on how to use the data function further in your IP script.

Below is some of the script I used to pass the string "dp" to the Data Function "StringToArray". It ran without issue but I am not sure about how to use the the ouput of the datafunction.


Link to comment
Share on other sites

  • 2 weeks later...

Hi k-young,

You normally use the output of a data function to kick off an iron python script. If that is what you are looking for, you then store the output of the data function in a document property. You can then include this document property value in your iron python script.

You can find some examples here: https://spotfired.blogspot.com/2015/10/update-doc-property-trigger-ironp....

And here is another example of getting the input parameter values in an iron python script:https://community.spotfire.com/wiki/how-get-values-input-parameters-data-fu....

Kind regards,

David Boot-Olazabal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...