How can I return the full list of document properties in a Spotfire file, using Ironpython.
Properties can be set by
Document.Properties["myProperty"] = "myValue"
I would like to do something like
for myProperty in Document.Properties:
print myProperty
#Some checks like if myProperty.Name = 'name1' then ...
Found this, but can't get it to work yet (it returns more then just the properties: 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