Any thing that has been set in screen context is available in the beanshell file. In beanshell file this can be achieved either by doing (temp is a variable to assign the parameter value)
temp = boxno;
or
temp = context.get("boxno");
Both of above examples has same effect.
Vikas
On Nov 28, 2008, at 6:30 PM, madppiper wrote:
Hi, whether it was possible to set a parameter in the screens.xml file andaccess the very same in a beanshell. I'm quite certain that there must be away, but the following doesn't work and I cannot find any examples: <set field="boxno" value="3" type="String" global="true"/> <script location="component://[...].bsh" /> and in the bsh file i use: context.get("boxno") -- View this message in context: http://www.nabble.com/How-to-set-a-screen-parameter-for-beanshell-usage-tp20734025p20734025.html Sent from the OFBiz - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature
