Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: stop keypress on combobox
David Nunnally
Posts: 206
 
stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 06 8:50 AM
fiogf49gjkf0d
I have a form with a combobox that I need the users to only choose an item in the dropdown list. But in good user fashion (even after multiple cainings) they still key in a non valid value. I need to stop this somehow. Is there a way to stop the keypress from entering a value into the combobox?
[Reply][Quote]
Jeff Crawford
Posts: 52
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 06 10:36 AM
fiogf49gjkf0d
David,

By changing the ComboBox’s Style property from csDropDown to csDropDownList, the object will display a drop down of the contents of the Items property, but block people from typing their own values in the field. If they try to type in the object, it will act as a type-ahead.

~JC
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Sep 06 11:25 AM
fiogf49gjkf0d
Perfect! Exactly what I needed!

Thanks Jeff.
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Sep 06 1:08 PM
fiogf49gjkf0d
Odd behavior using csDropDownList. You pick a value from the dowpdown. It saves to the db. But when you come back to the tab or hit F5 it blanks the value. Then it wants to resave the form when you try to leave and if you do then it over writes the previous selected value with null. Why does it blank out the previous selection? If I change it back to csDropDown this no longer happens.
[Reply][Quote]
Dan Delisle
Posts: 38
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 15 2:48 PM

Hi David,


Did you ever get this figured out? I'm getting this same behavior

[Reply][Quote]
Dan Delisle
Posts: 38
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Feb 15 2:54 PM

ohh, it got weirder. So after I click on the combobox and reselect a value and save, the combobox shows text on all of my other records. So in my case it seems that it's only happening when you first log into SLX, and once you have interacted with the combobox onetime it then works normally (until the next time you login).

[Reply][Quote]
Jin San Son
Posts: 8
 
Re: stop keypress on comboboxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jan 16 9:33 PM

Hi guys,


 


Make sure your combo box has the items that is matching to the value in the field. Otherwise, it shows blanks when it can't find the field value in the combo box list items.


 


Regards,


 


Jinsan

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 10:04:20 AM