我需要更新spotfire上的data on demand数据表。有没有办法重写脚本?我查看了多个页面以使用刷新功能,但无论是通过脚本还是通过数据表属性手动执行,它似乎都不起作用。下面是我看过的链接:
Spotfire: Create button to start loading data ,instead of using load data on demand
https://datashoptalk.com/trigger-on-demand-queries-ironpython/
https://community.tibco.com/wiki/how-refresh-or-reload-data-using-ironpython-script-tibco-spotfire。
以下是我使用的代码,以防我遗漏了什么。
from Spotfire.Dxp.Data import DataManager,DataTable
from Spotfire.Dxp.Application.Scripting import ScriptDefinition
from System.Collections.Generic import Dictionary,List
from System.Collections import ArrayList
from Spotfire.Dxp.Framework.ApplicationModel import NotificationService
import clr
table=List[DataTable]()
table.Add(Document.Data.Tables["test"])
Document.Data.Tables.Refresh(table)我使用的spotfire版本是7.11。主要问题是,在主数据表上的选择根本不影响数据点播表。谢谢
发布于 2020-01-30 04:23:32
所以,我不确定这是否会在未来的版本中更新,但我得到了公司的回应,说我的不能做到这一点。我解决这个问题的方法是创建一个标记,该标记仅用于从原始表更新按需数据表。然后,我创建了一个脚本来更新这些标记,以匹配我通常使用的标记。这样,您仍然可以在表上标记内容,然后使用一个按钮逐个更新data on demand表。每个data on demand表都有自己的标记,这一点很重要,这些标记将通过脚本进行更新。
发布于 2019-12-16 23:54:38
脚本看起来很好,应该可以像预期的那样工作。但是,当您使用脚本重新加载on-demand表时,只需确保on-Demand Settings中的复选框"Load automatically“和"Allow caching”处于未选中状态。
你好,安库什
https://stackoverflow.com/questions/59355274
复制相似问题