Done. Now you can upload updated patch :-). Thanks Adrian for your comment.
-- Ashish On Thu, Jun 18, 2009 at 8:12 PM, Mridul Pathak < [email protected]> 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 >> >> >> <[email protected]> > >
