[
https://issues.apache.org/jira/browse/OFBIZ-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892448#action_12892448
]
Scott Gray commented on OFBIZ-3875:
-----------------------------------
The javadoc is probably out of date now that it is uses the conversion
framework. The converter is CollectionConverters.StringToList and calls
StringUtil.toList(Object) and yes the format is exactly as I described with the
square brackets indicating a list and commas with a trailing space separating
the items. Here is an example that works right now:
{quote}
<set field="testList" value="[CASH, CHECK]" type="List"/>
{quote}
If we are only capable of doing an "in" comparison on a collection then we
should probably return a more suitable error message when value2 doesn't
resolve to one. The current error message would leave me scratching my head.
> Introduce an in operator for compare in minilang
> ------------------------------------------------
>
> Key: OFBIZ-3875
> URL: https://issues.apache.org/jira/browse/OFBIZ-3875
> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Minor
> Attachments: in for compare.patch
>
>
> It could be convenient to have an "in" operator for compare in minlange. Here
> is a patch, if nobody see any problems with it, nor have a better solution I
> will commit it in some days.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.