【发布时间】:2015-09-07 07:44:22
【问题描述】:
如何使用 Ironpython 在 Spotfire 文件中返回完整的文档属性列表。
属性可以设置
Document.Properties["myProperty"] = "myValue"
我想做类似的事情
for myProperty in Document.Properties:
print myProperty
#Some checks like if myProperty.Name = 'name1' then ...
找到了这个,但还不能让它工作(它返回的不仅仅是属性:http://www.cambridgesoft.com/support/EnterpriseSupport/KnowledgeBase/FAQ/details/Default.aspx?TechNote=2344
from Spotfire.Dxp.Data import *
for DocProp in Document.Data.Properties.GetProperties(DataPropertyClass.Document):
print DocProp.Name, DocProp.Value
【问题讨论】:
标签: ironpython spotfire