[OFBiz] Users - dynamic elements in path call to a screens.render

Jacopo Cappellato tiz at sastau.it
Mon Apr 3 07:42:47 CDT 2006


Hi Tibor,

you should pass the parameter to the screen as a standard url parameter:

http://localhost..../myscreen?type=cocorico

then you can use the variable in the screen's action in this way:

<set field="type" from-field="parameters.type" />

The variable "type" can then be used in your screen's action bsh.

Jacopo

tibor katelbach wrote:
> Hi Andrew
> yes but the data cannot be set at call time, it's static in the screen's 
> declaration .
> which means one declaration per different value :-(
> 
> if the data is passed at call time there will be only one dynamic 
> declaration.
> it's just wishfull thinking but with all that allready exists I never 
> know what surprise will
> pop out of these posts :-)
> 
> Regards
> Tibor
> 
> On 4/3/06, * Andrew Sykes* <andrew at sykesdevelopment.com 
> <mailto:andrew at sykesdevelopment.com>> wrote:
> 
>     Tibor,
> 
>     You can add additional stuff using...
>     <set field="MyVariable" value="ThisIsTheValue" />
>     (in widgets)
> 
>     The process is similar in ftl.
>     --
>     Kind Regards
>     Andrew Sykes < andrew at sykesdevelopment.com
>     <mailto:andrew at sykesdevelopment.com>>
>     Sykes Development Ltd
>     http://www.sykesdevelopment.com
> 
> 
>     _______________________________________________
>     Users mailing list
>     Users at lists.ofbiz.org <mailto:Users at lists.ofbiz.org>
>     http://lists.ofbiz.org/mailman/listinfo/users
> 
> 
> 
> ------------------------------------------------------------------------
> 
>  
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users



More information about the Users mailing list