Type Ahead display type

I am having an issue actually selecting from the valuelist via a type ahead formatted field.

Servoy 2.1 beta 2 - build 300 - Developer
Mac OS X 10.3.4
Java 1.4.2 - 34
Sybase

Field is type text - len 50 - allow null
Properties :
printable
editable
valuelist - name (which is custom list of 6 names)
display type - type_ahead

The field correctly displays a filtered list as soon as any character is typed but if I click or double click on one of the filtered names it is not being placed into the field !

Am I making some gross error here ?

Harry

Sorry, resolved this myself.

Arrow keys move you up and down the filtered list and return/enter key selects the highlighted entry !!

Harry - sort of embarassed !

Although I have not used this function yet, I plan to. I seems to me that once you filter the list, you should be able to scroll to the selection and click on it to select the record. Then use the OnRecordSelection event to enter the data.

But the filtered list of the Type Ahead display type is driven from a valuelist and so you are choosing from a drop down list which will not allow you to trigger an OnRecordSelection event !?

yup, you are right

Can you use the onAction/onDataChange event?

oauth.jar (33.9 KB)

Yes, whatever events/ actions you have set on your from will apply to the ShowFormInDialog. Plus you can add open and close dialog window events. All this function really does is show whever form you select, in a new window in the forground.

sorry, I replied to the wrong post

sorry, I replied to the wrong post

I really like the type ahead field type. However sometimes I do not want to choose anything that is in my valuelist. I don’t think this is currently possible. If it is not currently possible I have a suggestion:

In a combobox you can enter something that is not on the list if you check off the editable property on the field. If the type ahead field type had the same behavior it would allow one to type in something that is not on the valuelist.

John McCann

1> in 2.1b3 (or b4) you can select an entry with the mouse.

2> you can type any value you want in a typeahead field. You don’t have to choose a value from the list.
If for example you make a typehead on a “Country” field you get a list of all the countries that is currently entered once. But if thy country you want isn’t in it you can type and store that one. The next time that value is also in the list.

I really really want to use the type ahead function. In my hands it does not work as you describe. I cannot get it to do some very basic things like:

  1. Enter a value that is not on the list
  2. After setting a value, I cannot change it to a new value
  3. After setting a value, I cannot erase the value (set it to null)

A solution is attached.

JDM

2.1 beta 5
Windows

These problems do not manifest if the dataprovider for the field is global. You only see the problem if the dataprovider is not global.

JDM