[OFBiz] Users - BSH help?
Adrian Crum
adrianc at hlmksw.com
Mon Apr 4 20:33:02 EDT 2005
Oops..
context.put("orderList", orders);
Adrian Crum wrote:
> Chris Howe wrote:
>
>> I don't know where this is wrong.... orderLists is defined, order is
>> not and orders is not.
>>
>> if (billingAccountList.size() > 0){
>> accountListIter = billingAccountList.iterator();
>> order = new HashMap();
>> orders = new LinkedList();
>> while (accountListIter.hasNext()){
>> orderLists = accountListIter.next();
>> billingAccountId = orderLists.get("billingAccountId");
>> orderList =
>> delegator.findByAnd("OrderHeader",UtilMisc.toMap("billingAccountId",
>> billingAccountId,"statusId", "ORDER_CREATED"));
>> context.put("orderList", orderList);
>> order.put("orderList", orderList);
>> orders.addAll(orderList);
>> }
>> }
>
>
> Maybe you should try...
>
> if (billingAccountList.size() > 0){
> accountListIter = billingAccountList.iterator();
> orders = new LinkedList();
> while (accountListIter.hasNext()){
> orderLists = accountListIter.next();
> billingAccountId = orderLists.get("billingAccountId");
> orderList =
> delegator.findByAnd("OrderHeader",UtilMisc.toMap("billingAccountId",
> billingAccountId,"statusId", "ORDER_CREATED"));
> orders.addAll(orderList);
> }
> context.put("orderList", orderList);
> }
>
>
>>
>> ------------------------------------------------------------------------
>> Do you Yahoo!?
>> Yahoo! Small Business - Try our new resources site!
>> <http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ofbiz.org
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>
More information about the Users
mailing list