Type Ahead Behavior

http://forum.servoy.com/viewtopic.php?p=24245#24245

This must be a bug. I can see the display values and return the values with a combox, if I make it a Type Ahead, I can see the dipay values, but the return values are not inserted when selected.

Has to be something invoving find mode and type ahead lists.

Thanks,
Erich

Servoy Developer
Version R2 2.2-build 328
Java version 1.4.2_04-b05 (Windows XP)

I think the behaviour you describe is fixed in 2.2.1rc
can you test?

Ok, Sorry I will wait till the next stable build comes out after the Java 1.4 stuff gets resolved.

Thanks

I have downloaded the new version and am still having the same problem. If the field is a type ahead, when I select the account, the field is reset to 0 (int default).

If I use as a combobox, everything works fine.

Erich

Servoy Developer
Version R2 2.2-build 328
Java version 1.4.2_04-b05 (Windows XP)

Long shot but could this problem be related to the requirement to ‘double-click’ a type-ahead field (or use arrow keys & ) - but only needing a single-click to select from a Combo-box ??

Graham Greensall
Worxinfo Ltd

ebrandt:
If the field is a type ahead, when I select the account, the field is reset to 0 (int default).
If I use as a combobox, everything works fine.

This problem is still there… :cry:
Specially in FormInDialogs, TypeaHead is not workable. User has to type the whole line to get the right data returned.

Servoy Developer
Version R2 2.2.1rc3-build 332
Java version 1.5.0_02-36 (Mac OS X)

I would think that this would be a pretty common scenario, I am surprized that more people are not having issues. I guess they are working on it.

ebrandt:
I guess they are working on it.

Soo… It’s not really clear what you mean by this?

Well, I meant that the Servoy team must be working on it. Maybe not, just a guess.

Erich

Erich

Have you upgraded to the latest build? Have just tested type-ahead field on a FiD and it worked as expected on b332.

As I added/removed letters the list changed as expected - displaying Customer name but storing cust_ID.

Graham Greensall
Worxinfo Ltd

Servoy Developer
Version R2 2.2.1rc3-build 332
Java version 1.5.0_02-b09 (Windows XP)

grahamg:
As I added/removed letters the list changed as expected - displaying Customer name but storing cust_ID.

Hi Graham! Did you tested this on a FormInDialog (and on a Mac), too?

Graham,

This is the version I am using. Well, I must be doing something wrong, are you entering the data in a global int field?

Servoy Developer
Version R2 2.2.1rc3-build 332
Java version 1.4.2_04-b05 (Windows XP)

Thanks,
Erich

Yes the TypeAhead is working in a Form-in-Dialog - sorry not able to test on a Mac at moment.

It’s some time since I built this solution and not quite as straightfoward as I remembered. Have attached screenshot of part of a Quotation system - this is one of three Tab panels on a Form in Dialog based on a Product_Transactions table.

  • clicking on [Customer] button or in the REL_cm_name field triggers a Method that does a requestFocus on the TypeAhead field <zr_cm_cust_sn> - small field with FG/BG same colour

  • <zr_cm_cust_sn> is the FK pointing to Customers database

  • the ValueList displays Customer Names and onDataChange stores the Customer_ID in <zr_cm_cust_sn>. The REL_cm_name field just displays the Name through a relationship using <zr_cm_cust_sn>.

Can’t remember why I built it this way - maybe too much coffee that day :?

Have explained in some detail in case this will help you find a (schh whisper the word) ‘workaround’.

Graham Greensall
Worxinfo Ltd

Well, seems to be working for you I guess.

I basically have a simple relationship based value list that returns a Customer ID Number (Int). I have enclosed a screen shot, As you can see I have both a combo list and a type ahead, both lists work fine, but when selecting the account in the type ahead, nothing is returned.