Jump to content

How to use calculated value (dynamic item) in ironpython script


Cristiane Salgado

Recommended Posts

Hi!

I've created a calculated value (dynamic item) to know max date that match a condition in my data.

I also have a ironpython script to do some things and part of this script must use the date from the calculated value.

I'm trying to have python code to get the information from calculated value, but I'm struggling with it.

I couldn't do it "directly", so, now, I'm trying a work around... To create a document property to receive the calculated value and use this document property as enter parameter in the script, but I couldn't find a way to use calculated value as source of information of property document.

So... Is there a way to use calculated value inside ironpython script

Thanks

Cristiane Salgado

Link to comment
Share on other sites

I did this question in stackoverflow and, with help, I could make it work. That is the linkhttps://stackoverflow.com/questions/57183734/spotfire-how-to-use-calculated-value-dynamic-item-in-ironpython-script,. This video helped me a lot as well (https://www.youtube.com/watchv=81vXShmDyOM). Both links are for future reference.

Basically, I'm not using dynamic item anymore. I'vemoved the calculated value expression to R Data Function, using it as input parameter. The output parameter isdefined asa document property.

Regards

Cris

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...