Jump to content

Replacing Column Values with Iron Python Script by property Controll

Stefan Probst

Recommended Posts

Hello Community,

I try to use an Iron Python script to change all Values of a column to the Float Value of a property Control (Slider).

This is my Script:

from Spotfire.Dxp.Data import CalculatedColumn

mycalcCol = Document.Data.Tables["test_table"].Columns["new_col"].As[CalculatedColumn]()

myExpression = lowcontrol

mycalcCol.Expression = lowcontrol


lowcontrol = proteryControll value

test_table = DataTable with column to modify

new_col = Column to modify

When I run the script I get following error:

Traceback (most recent call last):

File "", line 5, in

TypeError: expected str, got float

Can someone tell me how to fix this problem The column is defined as Float in my original datatable

I added the Script with error Message as picture to the Post!

Thank you!


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