In a 1st attempt you can see Groovy as a Java interpreter. Then, looking at
existing examples and support from Groovy site, enhance
you code by using Groovy power. Look for the Elvis operator for instance. Or how closures are used in Groovy, notably for
each-loops.
Also how Groovy handle tests on NPE (without using ==null). You will find
plenty of examples in OOTB OFBiz code.
HTH
Jacques
From: "Shereen" <[email protected]>
Thanks Scott a lot for your advce actually Freeman advised me to use groovy
as well.
My problem is that I don't know groovy I've never wrote any code in groovy
but I'll check the files already implemented and try to do it.
I've asked more specific question n topic Check on party fields from ftl
files I've mentioned that I want to make a groovy file and that groovy file
checks on certain field in the party entity.
this is an extra field I've put in the party entity called requirePrepayment
and it's a checkbox I just want get the customer related to the order then
check if that field is checked or not.
If you can help me with any code or suggestions that would be great
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/Getting-an-OrderPaymentPreference-in-orderinfo-ftl-tp3015326p3016691.html
Sent from the OFBiz - User mailing list archive at Nabble.com.