General question about lookup in ofbiz

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

General question about lookup in ofbiz

Shereen
Hi all
I've a question please genereally in the lookup forms
when I go to make a lookup on the party or a product the ofbiz goes and finds the name if that party or that product and put beside the field shaded with yellow colour how it does that??
what's the function or method it uses?

Another question I want to do a customization in the request screen so that when the employee chooses a customer preferred currency of that customer is loaded automatically in the currency field
does anyone have suggestion on how this could be done?  Can I relate it to the code that gets the name of the party after I look it up to get the currency too and if that's applicable how to refresh the page? after such information
Reply | Threaded
Open this post in threaded view
|

Re: General question about lookup in ofbiz

Jacques Le Roux
Administrator
From: "Shereen" <[hidden email]>
> Hi all
> I've a question please genereally in the lookup forms
> when I go to make a lookup on the party or a product the ofbiz goes and
> finds the name if that party or that product and put beside the field shaded
> with yellow colour how it does that??
> what's the function or method it uses?

See function ajaxAutoCompleter(areaCsvString, showDescription)  in selectall.js and follow showDescription, not the easiest part of
OFBiz

Jacques

> Another question I want to do a customization in the request screen so that
> when the employee chooses a customer preferred currency of that customer is
> loaded automatically in the currency field
> does anyone have suggestion on how this could be done?  Can I relate it to
> the code that gets the name of the party after I look it up to get the
> currency too and if that's applicable how to refresh the page? after such
> information
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/General-question-about-lookup-in-ofbiz-tp3077850p3077850.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: General question about lookup in ofbiz

Bilgin Ibryam-2
For a similar example, you can also take a look at the configurable product
page in ecommerce application. There if you change the product options (for
example gold pizza toppings) price is updated with ajax from server side.

HTH
Bilgin

On Wed, Dec 8, 2010 at 9:21 AM, Jacques Le Roux <
[hidden email]> wrote:

> From: "Shereen" <[hidden email]>
>
>  Hi all
>> I've a question please genereally in the lookup forms
>> when I go to make a lookup on the party or a product the ofbiz goes and
>> finds the name if that party or that product and put beside the field
>> shaded
>> with yellow colour how it does that??
>> what's the function or method it uses?
>>
>
> See function ajaxAutoCompleter(areaCsvString, showDescription)  in
> selectall.js and follow showDescription, not the easiest part of OFBiz
>
> Jacques
>
>
>  Another question I want to do a customization in the request screen so
>> that
>> when the employee chooses a customer preferred currency of that customer
>> is
>> loaded automatically in the currency field
>> does anyone have suggestion on how this could be done?  Can I relate it to
>> the code that gets the name of the party after I look it up to get the
>> currency too and if that's applicable how to refresh the page? after such
>> information
>>
>> --
>> View this message in context:
>> http://ofbiz.135035.n4.nabble.com/General-question-about-lookup-in-ofbiz-tp3077850p3077850.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>
>