如何使用 IronPython 脚本在 TIBCO Spotfire 中重新加载单个数据操作

问题描述 投票:0回答:1

我正在尝试使用 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

这里是链接https://community.tibco.com/s/article/How-to-Reload-Individual-Data-Operations-in-TIBCO-Spotfire-Using-IronPython-Scripting

有人知道出了什么问题吗?

错误信息:

Error message

ironpython spotfire
1个回答
0
投票

错误表明需要定义该表。需要将其作为数据表类型的输入参数添加到 Iron Python 脚本中,指向您要引用的数据表。

© www.soinside.com 2019 - 2024. All rights reserved.