Product: TIBCO Spotfire®
Document Property associated with a List box (multiple select) does not appear in Script parameters of IronPython script
When you create a List box (multiple select) and try to use the associated document property as a script parameter, that document property does not appear in the list.
The reason for this is when you create that property control and select the data type of associated document property from the available options, say for example String, it gets created with the data type as 'String List' due to its nature. This is because it can have multiple input values unlike a single String value or single Integer value. Script parameters can only work with simple data types like String, Integer, etc. They cannot work with List data types like String List, Integer List, etc.
As a workaround, the script itself can access document properties of the list data type as shown below.
docPropValue=Documnet.Properties["docProp"]
So instead of adding docPropValue as a script parameter, we can directly access the value of docProp (which is a document property associated with a List box (multiple select)) in the script itself.
Comments
0 comments
Article is closed for comments.