I’ve tried attaching the method to both the onShow and onLoad of the form but the only thing that seems to trigger displaying the value is by clicking into the field.
Do you use a combobox with the edit property disabled or enabled ?
I have had better results with the edit property disabled when using 2 column valuelists.
The field properties are as per the screen shot with the SQL query to load the valuelist currently being fired using the onShow of the form
I have the behaviour now using the above setup where I can get to the form and the value will not be showing but if I move forward a record then it will start showing in all records - so in this case I am not clicking into the field just navigating to another record !?
The point is not only about partial texts, but also about editable comboxes. What happens if the user in my example types in “value3” if the field is editable?
If the column behind the dataprovider is an integer used to store the value ID, then any data ‘typed’ which is not part of the valuelist is ignored and not written to the backend.
The above statement seems to be true in my tests
So the only time in my case when an ID is written to the backend is when the user either:
chooses an approprite item from the value list by double clicking on it
types the actual name of a value in the list
So, what am I missing here ?
Because if this behaviour bears out then it satisfies what I want to achieve and my problem is the display of the value not appearing onShow of the form as per my original post
I currently don’t understand your problem. Just take it as it is: if you want to use a display/return type value list, you can only attach it to a non-editable combobox. Every other setup will lead to strange results if it works at all.
The typeahead/lookup field can handle string/id combinations. It also should handle an id that is currently not in the list (it should just load that one) But it is much better if you do load the valuelist as early as possible (onload) that should avoid those strange results.
Now, now, Marcel, you sound like a Feyenoord supporter with sour grapes
Well, it may sound strange… But I really don’t know who he is, from you mentioning football I guess it is a sportsman but isn’t Developer with or for Servoy major league sports either?