ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BJ Freeman <bjf...@free-man.net>
Subject Re: Check on party fields from ftl files
Date Wed, 27 Oct 2010 14:18:49 GMT
Sorry I use the flow I talked to you about.
so all that is done in the Groovy.
maybe someone else will give you an answer.

BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

Shereen sent the following on 10/27/2010 7:09 AM:
> It wil be the first time ever I use the groovy.
> But I'll follow your advice and try this but meanwhile I'll try also to do
> it using the ftl
> That's what I've done till now:
> <#assign orh =
> Static["org.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeader)>
>              <#assign billToParty = orh.getBillToParty()?if_exists>
>              <#assign billToPartyNameResult =
> dispatcher.runSync("getPartyNameForDate",
> Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", billToParty.partyId,
> "compareDate", orderHeader.orderDate, "userLogin", userLogin))/>
> I think that way I'm getting the customer now I want to check on certain
> field that's how I tried to check it and it gave me exception:
>              <#assign reqPrepayment = billToParty.requirePrepayment/>
>   the exception is
> Error on line 33, column 13 in
> component://order/webapp/ordermgr/order/orderinfo.ftl
> billToParty.requirePrepayment is undefined. It cannot be assigned to
> reqPrepayment at freemarker.core.Assignment.accept(Assignment.java:111)
> where else should that field be declared and I'm really so thankful for your
> help

View raw message