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
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
this feature is already in Ofbiz.
if you are following the order flow you should not have to do anything.
=
BJ Freeman
Strategic Power Office with Supplier Automation
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.com
I now this feature in ofbiz I've seen the tables and the records I just want
be able to do any checking I like in my ftl files for more cutomization
I'm also facing another proble of getting entities and check on their fields
I've mentioned that in separate topic
Thanks a lot for your reply
--
In general you should avoid putting too much logic in your ftl files and
instead prepare the data in groovy scripts at the screen level. Freemarker
doesn't have a huge amount of scripting support and you'll have a much better
time using groovy scripts.
Regards
Scott
HotWax Media