Hi, any comment? Em sexta-feira, 8 de novembro de 2013 15h46min37s UTC-2, Ari Lion BR Sp escreveu: > > Dear All, > > I have searched in the list, without success. > Is there a way to trigger a function after having filled Autocomplete (ID > based) field? > (If I would use simple SELECT field, it would be easy - doing a onchage, > but onchange or onblur , but I have a very large database of products, > impossible to load it in a SELECT). > > Autocomplete seems to conflict with widget onchange/onblur. > > For example, I use Autocomplete to choose a Product in a Selling Invoice, > and as I have thousands of products, Autocomplete is the only way to handle > it. What I want is to populate a second field with the product/item price. > > Is there a way for me to receive back the ID for a just autocompleted > Product Field allowing me to use it at any function I want (such as a > callback function)? > I succeed partialy to get it via jQuery pointing to the Input which > contains the ID, but for some reason it only works at the second time I > choose the same Product at the same field. > > Happy to receive answers. > > Thanks and regards, > Ari >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.