What about “OnDataChange”? In SmartClient this almost works for me (though I haven’t tried in Webclient). If the user clicks on the combo box and then clicks on one of the options, it works fine. If instead they start typing to zoom down a long list of options, unfortunately the first key stroke triggers the OnDateChange method. I’d like to have this type-ahead functionality in a ComboBox. OnFocusLost is what I use now, but it triggers even if the data doesn’t change (as expected).
Ok, sorry about the crossed wires. Can you advise, how can I avoid the behaviour describeed, ie when typing to locate desired option in a combo box list, each key stroke triggers the OnDateChange method.
Yes, a typeahead in a combobox, so the user can’t type something else (such as with a text field/valuelist/typeahead) BTW, this is with Servoy Developer/Offline.
It’s probably something straightforward that I’m making too complex
If I make the field displayType = typeahead, then I have to set the field to be editable, then the user can easily type in something other than one of the options in the valuelist, so I’d need to test that whatever they entered was a valuelist item and handle that.
I was hoping to keep the combobox function and appearance, with typeahead that doesn’t trigger the onDataChange event with each key stroke.
BTW, not sure if it makes any difference, but I’m referring to Servoy Offline (disabled developer) rather than Web Client.