Products | Versions |
---|---|
Spotfire Analyst | All Versions |
When using 'List Box (multiple select)' property controls, the property data type is automatically set to a 'String List'. If the input handler for the string list input parameter is set to 'document property', 'data table property' or 'column property' (depending on your property type) then you will receive the following error when executing the data function:
Could not execute function call. Could not calculate inputs. Argument 'myStringListPropertyInput' could not be type checked.
For example, your selection in the List Box are 3 values: A,B and C. Using the Expression "${myStringListProperty}", this passes “A,B,C” to the statistical engine. Using the Expression $map("'${myStringListProperty}'", ","), this passes “'A','B','C'” to the statistical engine. Within your data function you can then parse or handle this data as desired. For example, you can split these values into separate values using unlist() with strsplit() or many other methods.
Example:
> unlist(strsplit("A,B,C","\\,")) [1] "A" "B" "C"