我正在尝试使用 IronPython 脚本在 Spotfire 中重新加载单个数据操作,但我不能。 我在 TIBCO 社区上找到了解决方案,但它不起作用。就是这个:
from Spotfire.Dxp.Data import *
from Spotfire.Dxp.Data.DataOperations import *
from System import *
# Get the first data source from the Source View
op = table.GenerateSourceView().GetAllOperations[DataSourceOperation]()[0]
# Reload data source
op.Reload()
# Set current time as latest reload
Document.Properties["lastReload"] = DateTime.Now
有人知道出了什么问题吗?
错误信息:
错误表明需要定义该表。需要将其作为数据表类型的输入参数添加到 Iron Python 脚本中,指向您要引用的数据表。