Insert additional elements in form

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

Insert additional elements in form

kranti
Hi,

I want to insert a few elements in the form whose length may be variable.
For example, Lets take the case of the reservation in trains. I just need
the PNR number of the ticket for the submission of the form.
But the additional fields which need to be displayed are the list of all the
passenger names, and their age. For a PNR number, the size of the passenger
list can vary from 1 to 6, and the amount of detail provided may also vary.
One way to do this, is to put all the information as a string through a
Groovy file, and display it.
Can anyone suggest any better way? Can we insert a FTL element  or a similar
widget inside a form?
Regards,
Kranti Agrawal
Student, IIIT Bangalore
krantiagrawal.blogspot.com
Reply | Threaded
Open this post in threaded view
|

Re: Insert additional elements in form

Shubham Dubey
Hi Kranti

It seems you are concerned about that whether we can handle varying size
lists  into  form widgets,
I would  suggest  you to use  <field use-when>  or// use  ftl for the  
purpose.

  I think we cannot insert a FTL element into form widgets, except that
we retrieve it from the screen context.


Thanks & Regards
Shubham Dubey
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/





Kranti Agrawal wrote:

> Hi,
>
> I want to insert a few elements in the form whose length may be variable.
> For example, Lets take the case of the reservation in trains. I just need
> the PNR number of the ticket for the submission of the form.
> But the additional fields which need to be displayed are the list of all the
> passenger names, and their age. For a PNR number, the size of the passenger
> list can vary from 1 to 6, and the amount of detail provided may also vary.
> One way to do this, is to put all the information as a string through a
> Groovy file, and display it.
> Can anyone suggest any better way? Can we insert a FTL element  or a similar
> widget inside a form?
> Regards,
> Kranti Agrawal
> Student, IIIT Bangalore
> krantiagrawal.blogspot.com
>
>