Using LookUp to autofill multiple values in form

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

Using LookUp to autofill multiple values in form

vivek.mi
Hello all,

I want to use lookup field in a form to fill the multiple fields in same form.
As of now i am able to set only one value.

<field name="name" title="${uiLabelMap.TaskMgmntName}">
       <lookup target-form-name="LookupSignature" description-field-name="designation"/>
</field>

The above code is having only one description-field that is being filled after the selection is made.


Thanks in advance,
Vivek Mishra
Vivek Mishra
Reply | Threaded
Open this post in threaded view
|

Re: Using LookUp to autofill multiple values in form

joelfradkin@gmail.com
Maybe you could do the lookup in groovy, so you could add a context value and use it in multiple places in the form?
Joel Fradkin
Reply | Threaded
Open this post in threaded view
|

Re: Using LookUp to autofill multiple values in form

Jacques Le Roux
Administrator
In reply to this post by vivek.mi
Not exactly sure of what you want to do. You might look at how is done

"Lookup Field of type layered and showing use of set_values underneath, ie returning not only Id but also another value. Both using also autocomplete"
at example/control/FormWidgetExamples

and continue from that. Maybe not easy...

Jacques


Geo ID
Le 27/08/2014 14:12, vivek.mi a écrit :

> Hello all,
>
> I want to use lookup field in a form to fill the multiple fields in same
> form.
> As of now i am able to set only one value.
>
> <field name="name" title="${uiLabelMap.TaskMgmntName}">
>         <lookup target-form-name="LookupSignature"
> description-field-name="designation"/>
> </field>
>
> The above code is having only one description-field that is being filled
> after the selection is made.
>
>
> Thanks in advance,
> Vivek Mishra
>
>
>
> -----
> Vivek Mishra
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Using-LookUp-to-autofill-multiple-values-in-form-tp4654319.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Using LookUp to autofill multiple values in form

vivek.mi
Thanks Jacques for your reply.

I have used the same to get one value. After Look-up it actually sets another value which is specified as description-field-name while using the look-up on a particular field.

<field name="name" title="${uiLabelMap.TaskMgmntName}"> 
       <lookup target-form-name="LookupSignature" <b>description-field-name="designation"/>
</field>

May be some other way around i can get values using ftl and groovy, but so far not getting it from the form-widgets.
Vivek Mishra