You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Patrick <pa...@gmail.com> on 2010/01/28 23:05:25 UTC
How to pass data into a groovy file?
I am trying to run a groovy file that has this getAttribute request.
productCategoryId = request.getAttribute("productCategoryId");
What is the appropriate way to pass data into a groovy file, or make
data available to a groovy file?
Re: How to pass data into a groovy file?
Posted by Jacques Le Roux <ja...@les7arts.com>.
Also have a look at
http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=6553757
Anyway there are plenty of examples in code...
HTH
Jacques
From: "Ancheta, Fred" <fr...@mavericklabel.com>
> You can access such variables by using:
>
> parameters.productCategoryId;
>
> This will get it from the paramMap of the request.
>
> On Thu, Jan 28, 2010 at 2:33 PM, Alexander1893 <
> alexander@familie-schweizer.net> wrote:
>
>>
>> hi,
>>
>> could you explain a litte lo more in detail, what you want to do:
>> what is the origin of the data you want to pass?
>>
>> alexander
>>
>> --
>> View this message in context:
>> http://n4.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
Re: How to pass data into a groovy file?
Posted by "Ancheta, Fred" <fr...@mavericklabel.com>.
You can access such variables by using:
parameters.productCategoryId;
This will get it from the paramMap of the request.
On Thu, Jan 28, 2010 at 2:33 PM, Alexander1893 <
alexander@familie-schweizer.net> wrote:
>
> hi,
>
> could you explain a litte lo more in detail, what you want to do:
> what is the origin of the data you want to pass?
>
> alexander
>
> --
> View this message in context:
> http://n4.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Re: How to pass data into a groovy file?
Posted by Alexander1893 <al...@familie-schweizer.net>.
hi,
could you explain a litte lo more in detail, what you want to do:
what is the origin of the data you want to pass?
alexander
--
View this message in context: http://n4.nabble.com/How-to-pass-data-into-a-groovy-file-tp1401304p1401318.html
Sent from the OFBiz - User mailing list archive at Nabble.com.