You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Kranti Agrawal <kr...@gmail.com> on 2010/06/28 14:50:45 UTC
Insert additional elements in form
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
Re: Insert additional elements in form
Posted by Shubham Dubey <sh...@hotwaxmedia.com>.
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
>
>