How to set current selected item in ComboBoxItem with OptionDataSource

SmartGWT 2.3 nightly build 1307

I have a DynamicForm with a ComboBoxItem which has an OptionDataSource to provide the options. This all works well for populating the drop down and allowing the user to make selections.

I have a use case where I would like to programatically select an option that is in the current list and make it the currently selected item. I have tried using the setValue() method and while it does set the current display value in the field, it also clears the drop down list. I have tried setShowOptionsFromDataSource(true) but that did not seem to make a difference.

Any help would be appreciated.

Thanks,
John

So is there no way to accomplish this?

John

Do you have set the displayField and valueField properties?

Thanks for your reply. Yes, displayField and valueField are both set.

The ComboBox works fine from the UI. The user can view and select any items as expected. My issue is when I use setValue to programatically set the value picklist is cleared.

Thanks,
John

This has been resolved. As expected, it was my error. I had just expected it would have been more involved than a typo. I mis-typed the name of the field. Thanks.