NetTalk Central

Author Topic: Autocomplete  (Read 2581 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Autocomplete
« on: March 13, 2014, 01:50:57 PM »
Hi,

I have a memory form with a local string var.
I have arranged this field to make use of autocomplete.
When I enter a value in the field, the autocomplete kicks in.
Now when I finish the entry with a value which is NOT in the lookup file for the autocomplete and I tab to the next field, the field entry is replaced by blanks.

When I check the send_value_to_server box, I can see that the value "arrives" in the serverside code.
But later, after I click save, in the ValidateAll routine, the value has gone.

Is this behaviour normal or is it a bug?

Cheers,
Rene




Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Autocomplete
« Reply #1 on: March 13, 2014, 09:46:21 PM »
I think post a small example Rene, and I can take a look. It's hard to duplicate from your description so I'm not sure if it's a bug in your code, a bug in my code, or simply the way it's designed to work.


Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Autocomplete
« Reply #2 on: March 14, 2014, 11:29:41 AM »
Hi Bruce,

I think I solved my problem.
I defined the wrong value field in the autocomplete definition.
I assumed it had to be the keyfield of the file which provides the data for the autocompletebut it had to be the autocomplete text in this case.

Thanks for having me make an example.
Examples always work. One way or the other.  ;D

Congrats on NTWS8. Can't wait!

Cheers,
Rene
Rene Simons
NT14.14