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!
|
|
stop keypress on combobox
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? |
|
|
|
Re: stop keypress on combobox
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 |
|
|
| |
|
Re: stop keypress on combobox
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. |
|
|
| |
|
Re: stop keypress on combobox
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). |
|
|
|
Re: stop keypress on combobox
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 |
|
|
|