Hello Bilgin,

This is great idea, and this will be very nice feature in OFBiz. I will surely give a try to your patch as soon as possible.

Thanks
--
Divesh Dutta.


Bilgin Ibryam wrote:
Hi all,

I'd like to propose a way to add ajax support for lookup fields.
For that purpose I created a small POC code, where you can test it https://issues.apache.org/jira/browse/OFBIZ-3211

The idea is to add ajax autocompleter by default to all lookup fields (generated from form widgets), which gets activated whenever the user types some letters in the lookup field. To retrieve the data is used the same url and screen as the lookup, but with an extra parameter indicating that it is an ajax request.

Then on the server side, the only needed change is to add 4 lines of code to each lookup screen which we want to have ajax support. This extension doesn't affect the current usage of lookup button, which still can be used for advanced searches.

There are still things to fix and tune up, but the code is stable enough to see it in action. To demonstrate that I added the 4 lines to LookupPartyName lookup screen. So after applying the patch, you can go to any screen using LookupPartyName lookup(this lookup is used in most of the party lookups, like accounting-> invoices, payments) and type some letters in party id fields. I'd be glad to hear your opinion on this.

Regards,
Bilgin Ibryam

Reply via email to