Re: how to pass groovy variables to widget screen?

2013-02-12 Thread Vikas Mayur
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

Re: how to pass groovy variables to widget screen?

2013-02-07 Thread John Smith
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;

Re: how to pass groovy variables to widget screen?

2013-02-06 Thread Deepak Dixit
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