Stefan Probst Posted December 8, 2021 Share Posted December 8, 2021 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 with: 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! Stefan Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now