Web Connection
Autocomplete
Gravatar is a globally recognized avatar based on your email address. Autocomplete
  Luca
  All
  Mar 12, 2019 @ 06:51am

Dear Rick,
I use WC 5.62 I am trying to use autocomplete textbox, I added the control

the script

and the function in prg

The cursor qRicerca returns the right string, but the label lblDesCliente get no text.
Please what is wrong?
How to debug and fix it?
Thank you very much for support``

Gravatar is a globally recognized avatar based on your email address. re: Autocomplete
  Rick Strahl
  Luca
  Mar 12, 2019 @ 03:13pm

I don't recall how this works, but I think you want to assign the value of hte list:

var selection = $$("lstCliente").val();

I don't recall how jQUery UI works to get the value, but pretty sure .label is not right. It'll be .value or .selectedValue or something like that. Set a breakpoint in your script and see what the ui parameter has in it and based on that get the selected value.

You can assign that to the text.

The auto-complete control has long been deprecated (even prior to the Web Control Framework being deprecated) so I can't offer much help with it at this point.

+++ Rick ---

© 1996-2024