我有下面的铁Python代码将用于Spotfire。据我理解,它可以刷新特定的数据表。有一个评论部分,似乎有一个计数器。我需要解释一下计数器是如何工作的,以及现有代码是否只是刷新数据表。
铁Python代码:
from Spotfire.Dxp.Application import *
from Spotfire.Dxp.Application.Visuals import *
from Spotfire.Dxp.Data import DataManager
myDocument=Application.Document
#myDocument.Properties["RefreshCounter"] = 0
DM = Application.GetService(DataManager)
DM.Tables.Refresh([table1, table2])发布于 2016-05-20 18:21:39
在Spotfire中有类似于文档属性的定义如下所示。因此,开发人员似乎打算只计算刷新次数,但是在代码中,我看不到他增加计数器的时间,所以它可能被删除,而不是注释掉。只是一个有教养的猜测。
代码只是刷新表。根据http://spotfired.blogspot.com/2014/10/refresh-reload-datatables.html
https://stackoverflow.com/questions/36920771
复制相似问题