screen widgets are meant for display. the processing by scripts is to
get the data ready to display on a page.
the decision as to which screen is done through the controller, and an
event, service, or just a request, that returns a string that determines
which view (screen) to use.
what you propose is not in the normal way ofbiz works.
however if you have one FTL that has all the templates in it.
then you can pass a parameter to the FTL from the script as to what to
display, and select the specific template in the FTL.
madppiper sent the following on 11/28/2008 5:00 AM:
> Hi,
>
> whether it was possible to set a parameter in the screens.xml file and
> access the very same in a beanshell. I'm quite certain that there must be a
> way, 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")