UEL doesn't support variable name modifiers for an object accessed via a key in
a Map
-------------------------------------------------------------------------------------
Key: OFBIZ-2928
URL: https://issues.apache.org/jira/browse/OFBIZ-2928
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: Release Branch 9.04, SVN trunk
Reporter: Mridul Pathak
Fix For: Release Branch 9.04, SVN trunk
This was discussed a few months ago on dev mailing list. Variable name modifier
doesn't work for following code:
{code:xml}
<set field="itemIssuance.quantity" value="${parameters.quantity$double +
itemIssuance.quantity$double}" type="BigDecimal"/>
{code}
Gives following warning:
2009-06-18 22:02:59,475 (http-0.0.0.0-8443-1) [
GenericEntity.java:704:WARN ] The field name (or key) [quantity$double] is not
valid for entity [ItemIssuance], printing IllegalArgumentException instead of
throwing it because Map interface specification does not allow throwing that
exception.
While it works for context variables like:
{code:xml}
<set field="itemIssuanceQuantity" from-field="itemIssuance.quantity"
type="BigDecimal"/>
<set field="thisQuantity" from-field="parameters.quantity" type="BigDecimal"/>
<set field="itemIssuance.quantity" value="${thisQuantity$double +
itemIssuanceQuantity$double}" type="BigDecimal"/>
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.