How do I access the requestAttributes in the Form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I access the requestAttributes in the Form

muralis
Hello there,

I am trying to fetch Contact Mech information for a new Entity. All Data
Models done up & creation of Contact mech happening perfectly.

Attempting to render out the Edit information of this entity along with
ContactMech Details.

I wrote a groovy script to fetch the ContactMech info, Working fine.

This script is invoked using the script tag in the screen. the screen
includes the Form Template. In the form I am  attempting to populate the
ContactMech. Not too sure how to gain handle to the requestAttributes
Object in a Form.

Also attempted to populate the parameters object in the groovy script with
no success.

All the existing modules seem to be getting a handle to those objects
through ftl and through forms.

Just wondering if it is possible to gain the handle of the Objects in the
form object.

Thanks
murali
Reply | Threaded
Open this post in threaded view
|

Re: How do I access the requestAttributes in the Form

Jacques Le Roux
Administrator
IIRW try the context variable (like context.varName)
This might help you https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=6553757
Note also globalcontext is available in screen context

Jacques

On Thursday, February 06, 2014 11:47 AM, [hidden email] wrote

> Hello there,
>
> I am trying to fetch Contact Mech information for a new Entity. All Data
> Models done up & creation of Contact mech happening perfectly.
>
> Attempting to render out the Edit information of this entity along with
> ContactMech Details.
>
> I wrote a groovy script to fetch the ContactMech info, Working fine.
>
> This script is invoked using the script tag in the screen. the screen
> includes the Form Template. In the form I am  attempting to populate the
> ContactMech. Not too sure how to gain handle to the requestAttributes
> Object in a Form.
>
> Also attempted to populate the parameters object in the groovy script with
> no success.
>
> All the existing modules seem to be getting a handle to those objects
> through ftl and through forms.
>
> Just wondering if it is possible to gain the handle of the Objects in the
> form object.
>
> Thanks
> murali
Reply | Threaded
Open this post in threaded view
|

Re: How do I access the requestAttributes in the Form

Adrian Crum-3
In reply to this post by muralis
Generally speaking, you should not need request attributes in your form.
What are you trying to do?

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 2/6/2014 2:47 AM, Murali Shankar Gopalakrishnan wrote:

> Hello there,
>
> I am trying to fetch Contact Mech information for a new Entity. All Data
> Models done up & creation of Contact mech happening perfectly.
>
> Attempting to render out the Edit information of this entity along with
> ContactMech Details.
>
> I wrote a groovy script to fetch the ContactMech info, Working fine.
>
> This script is invoked using the script tag in the screen. the screen
> includes the Form Template. In the form I am  attempting to populate the
> ContactMech. Not too sure how to gain handle to the requestAttributes
> Object in a Form.
>
> Also attempted to populate the parameters object in the groovy script with
> no success.
>
> All the existing modules seem to be getting a handle to those objects
> through ftl and through forms.
>
> Just wondering if it is possible to gain the handle of the Objects in the
> form object.
>
> Thanks
> murali
>