onAction with ComboBox

Hello,

Just started playing with the new web client and having good results.

I am stuck on a small issue however.

Is it possible to have a combobox trigger an onAction event in the webclient?

I am needing to refresh an item list and can’t seem to get the onAction to trigger after the user makes a selection from the combobox.

Thanks!

This is planned for 3.1 (due in beta by the end of the year (THIS year!).

:-)

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).

Bob,

Thanks for the update!!! :slight_smile:

-Bryant Robinson

onDataChange IS the event I’m talking about. We’ll see if it can make it into 3.1 or not.

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.

Are you trying to do a typeahead or what? The typeahead does work in webclient (some cool Ajax stuff)…

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 you make the field displayType “typeahead” - doesn’t that work in Web Client?

Hi Bob,

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.