Btw, Use camel case pattern for naming the groovy file - tips and tricks -
https://cwiki.apache.org/OFBIZ/tips-tricks-while-working-with-groovy.html
Regards
Vikas
On Feb 7, 2013, at 10:10 AM, Deepak Dixit wrote:
You use same with groovy, rename helloworld.bsh to helloworld.groovy
Thanks Deepak,
Do you know how to make it a global variable(globalContext)?
Thanks in advance.
John
On Thu, Feb 7, 2013 at 3:40 PM, Deepak Dixit
deepak.di...@hotwaxmedia.comwrote:
You use same with groovy, rename helloworld.bsh to helloworld.groovy
helloworld.groovy
{code}
hello=world;
You use same with groovy, rename helloworld.bsh to helloworld.groovy
helloworld.groovy
{code}
hello=world;
context.hello = hello;
{code}
include groovy file in action tag.
then you can use using ${hello} and in you are using form widget then you can
use the from-field attribute.
Thanks