Spotfire:如何以编程方式访问计算值

Spotfire: how to access calculated value programatically

因此,例如 access/change "limit data using expression" 属性 对应于我做的条形图:

from Spotfire.Dxp.Application.Visuals import BarChart
chart1 = Viz.As[BarChart]()
filter = '[CS_AGE] Is Not Null'
chart1.Data.WhereClauseExpression = filter

我的问题是:如何访问 "limit data using expression" 属性 对应于 计算值 (您在使用 "insert dynamic item>calculated values")

如果您知道控件的 ID(可以通过添加控件然后查看其父文本区域的 HTML 来获得),可能有一种方法可以通过 API 直接修改控件, 但我不知道它叫什么

就是说,如果您只需要更改用于计算值 的表达式,那么使用文档 属性 会简单得多。在你的脚本中,你可以使用

Document.Properties["MyPropertyName"] = "[Column] > 100"

然后在您的计算值(以及任何使用相同限制的图表)中,将数据限制表达式设置为

${MyPropertyName}