You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Ashish Vijaywargiya <vi...@gmail.com> on 2009/06/18 17:00:18 UTC

Re: svn commit: r786013 - in /ofbiz/trunk/applications: order/servicedef/ product/script/org/ofbiz/shipment/issuance/ product/script/org/ofbiz/shipment/receipt/ product/servicedef/

Done. Now you can upload updated patch :-).
Thanks Adrian for your comment.

--
Ashish

On Thu, Jun 18, 2009 at 8:12 PM, Mridul Pathak <
mridul.pathak@hotwaxmedia.com> wrote:

> Thanks Adrian for your useful comments, this will help me to make better
> use of UEL in future :).
> Ashish, can you please reopen the Jira Issue OFBIZ-2619.  So that I can
> upload a patch with these improvements on the same issue.
>
> --
> Thanks,
> Mridul Pathak
>
>
> On 18-Jun-09, at 8:00 PM, Adrian Crum wrote:
>
>  It's good to see UEL expressions used to simplify simple method code. One
>> thing to watch out for though - UEL will throw an exception if an expression
>> variable doesn't exist. OFBiz has a variable name modifier that can be used
>> to avoid that.
>>
>> For example:
>>
>> <set field="itemIssuance.quantity" value="${itemIssuance.quantity +
>> parameters.quantity}" type="BigDecimal"/>
>>
>> would be better as:
>>
>> <set field="itemIssuance.quantity" value="${itemIssuance.quantity$double +
>> parameters.quantity$double}" type="BigDecimal"/>
>>
>> For more information:
>>
>> http://docs.ofbiz.org/x/Hhk
>>
>> -Adrian
>>
>>
>>  <as...@apache.org>
>
>