| | | StrataFrame User
       
Group: StrataFrame Users Last Login: 2 days ago @ 3:01:42 PM Posts: 309, Visits: 1,246 |
| | This may be a stupid question but I'm testing something and can't seem to make it work the way I want. I have a form with SF combobox (DropDown) bound to a BO. I am populating via business object. Everything works fine except I want to be able to clear out the combobox value so a empty string is written to the bound field. I can clear the value from the combo box but it doesn't seem to effect the business object. The original value still remains after I save. I typically don't use comboboxes for these types of things so I haven't run across this before. I'm sure there is a easy way to make this work... Any suggestions would be appreciated. Thanks, Tim |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| By default, the BindingProperty of a ComboBox is "SelectedValue" which will not change when you change the text... so when we bing to a ComboBox that is a DropDown instead of a DropDownList, we change the BindingProperty to "Text" and bind to the raw text that is typed into the ComboBox. Try changing that and see if it gives you the desired effect.
www.bungie.net |
| | | | StrataFrame User
       
Group: StrataFrame Users Last Login: 2 days ago @ 3:01:42 PM Posts: 309, Visits: 1,246 |
| Thanks that worked. Tim |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 09/26/2008 8:30:36 AM Posts: 2,685, Visits: 1,886 |
| | |
|
|