ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shereen <sheri_ash...@hotmail.com>
Subject Re: Check on party fields from ftl files
Date Wed, 27 Oct 2010 14:09:46 GMT

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 =
            <#assign billToParty = orh.getBillToParty()?if_exists>
            <#assign billToPartyNameResult =
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
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
View this message in context: http://ofbiz.135035.n4.nabble.com/Check-on-party-fields-from-ftl-files-tp3015477p3015542.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message