A list is stored in the form of string in Document.Properties in Spotfire using IronPython script since Document.Properties doesn't directly support list type.
mylist = ['13','24','57'] print mylist
['13','24','57']
Document.Properties["mylist"] = str(mylist)
This is where I need help. I need to access each element in the list.
You can use ",".join(str(x) for x in mylist)
to convert a list to string.
mylist = ['13','24','57']
print(",".join(str(x) for x in mylist))
>>>>13,24,57
Also Document Properties can accept a list. The document property simply needs to be a multi-select rather than a string.