简体   繁体   中英

How can I create a Calculated Column in Spotfire with IronPython script (preferably using External Name)?

I have a data table where I can not count on the column names being the same from moment to moment so I cannot build Calculated Columns the standard way because it uses the "Column Name" property (and that can change).

So, I'd like to build them via IronPython using the External Name which won't change without notice.

由于您已经知道如何通过外部名称访问特定列 ,因此可以使用该方法来更改列的Expression属性,如下所示:

column.Properties["Expression"] = "If([some_column] = 1, 'YES', 'NO')"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM