onAction with ComboBox

Forum to discuss the Web client version of Servoy.

onAction with ComboBox

Postby monetteboy » Tue Oct 17, 2006 12:26 am

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!
monetteboy
 
Posts: 73
Joined: Mon Aug 30, 2004 10:47 pm
Location: USA

Postby bcusick » Thu Oct 26, 2006 11:50 am

This is planned for 3.1 (due in beta by the end of the year (THIS year!).
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby antonio » Fri Oct 27, 2006 10:24 am

:-)
Last edited by antonio on Fri Oct 27, 2006 10:28 am, edited 1 time in total.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Postby antonio » Fri Oct 27, 2006 10:27 am

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).
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Postby monetteboy » Fri Oct 27, 2006 5:27 pm

Bob,

Thanks for the update!!! :)

-Bryant Robinson
monetteboy
 
Posts: 73
Joined: Mon Aug 30, 2004 10:47 pm
Location: USA

Postby bcusick » Sat Nov 04, 2006 2:02 am

onDataChange IS the event I'm talking about. We'll see if it can make it into 3.1 or not.
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby antonio » Sat Nov 04, 2006 10:11 pm

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.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Postby bcusick » Sat Nov 11, 2006 1:54 pm

Are you trying to do a typeahead or what? The typeahead does work in webclient (some cool Ajax stuff)...
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby antonio » Sun Nov 12, 2006 12:35 am

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
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Postby bcusick » Mon Nov 13, 2006 3:36 pm

If you make the field displayType "typeahead" - doesn't that work in Web Client?
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby antonio » Mon Nov 13, 2006 9:53 pm

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.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 12 guests