Hi all,
I understand that there's a javascript call_fieldlookup3 that can be use if i want to populate 2 fields from the lookup result. What about if i need to populate more than 2? I have a requirement to populate half of the screen fields from the result from a lookup window, any chance that there's a existing javascript that can help me to achieve that? If not is there any suggestion on how should i pursue this? Thanx for any suggestion. FooShyn |
Hi,
Anyone with any knowledge or idea on this? Thanx FooShyn On Thu, May 24, 2012 at 3:41 PM, Foo Shyn Chung <[hidden email]> wrote: > Hi all, > > I understand that there's a javascript call_fieldlookup3 that can be use > if i want to populate 2 fields from the lookup result. What about if i need > to populate more than 2? > > I have a requirement to populate half of the screen fields from the result > from a lookup window, any chance that there's a existing javascript that > can help me to achieve that? If not is there any suggestion on how should i > pursue this? > > Thanx for any suggestion. > FooShyn > |
Hi FooShyn,
Which ofbiz version are you using? As we are using htmlTemplate.lookupField for lookup for layered lookup. inline: On 05/29/2012 09:31 AM, Foo Shyn Chung wrote: > Hi, > > Anyone with any knowledge or idea on this? > > Thanx > FooShyn > > On Thu, May 24, 2012 at 3:41 PM, Foo Shyn Chung<[hidden email]> wrote: > >> Hi all, >> >> I understand that there's a javascript call_fieldlookup3 that can be use >> if i want to populate 2 fields from the lookup result. What about if i need >> to populate more than 2? >> >> I have a requirement to populate half of the screen fields from the result >> from a lookup window, any chance that there's a existing javascript that >> can help me to achieve that? If not is there any suggestion on how should i >> pursue this? For this you can write your custom code to get the other value of screens from ajax call. add an onchange event for lookupField and call an ajax request to get the other values. -- Thanks& Regards, Yashwant Dhakad Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com >> Thanx for any suggestion. >> FooShyn >> |
Hi Yashwant,
We are using the 11.04 branch for our development. I did take a look at the htmlTemplate.lookupField for clues. So far what i'm looking at is that the maximum number of fields to be updated are 2. Because there are a number of fields that need to be updated from the returned result, thus i'm checking to see whether someone has done it on Ofbiz already or not. Thanx FooShyn On Tuesday, May 29, 2012, Yashwant Dhakad wrote: > Hi FooShyn, > > Which ofbiz version are you using? > As we are using htmlTemplate.lookupField for lookup for layered lookup. > > inline: > On 05/29/2012 09:31 AM, Foo Shyn Chung wrote: > >> Hi, >> >> Anyone with any knowledge or idea on this? >> >> Thanx >> FooShyn >> >> On Thu, May 24, 2012 at 3:41 PM, Foo Shyn Chung<[hidden email]> >> wrote: >> >> Hi all, >>> >>> I understand that there's a javascript call_fieldlookup3 that can be use >>> if i want to populate 2 fields from the lookup result. What about if i >>> need >>> to populate more than 2? >>> >>> I have a requirement to populate half of the screen fields from the >>> result >>> from a lookup window, any chance that there's a existing javascript that >>> can help me to achieve that? If not is there any suggestion on how >>> should i >>> pursue this? >>> >> > For this you can write your custom code to get the other value of screens > from ajax call. > add an onchange event for lookupField and call an ajax request to get the > other values. > > -- > Thanks& Regards, > Yashwant Dhakad > Enterprise Software Developer > HotWax Media Pvt. Ltd. > http://www.hotwaxmedia.com > > > > Thanx for any suggestion. >>> FooShyn >>> >>> > > |
Free forum by Nabble | Edit this page |