StrataFrame Forum

Combobox not propagated to BO when Save clicked

http://forum.strataframe.net/Topic28589.aspx

By Lukasz Kustusz - 10/5/2010

Hello, 
I have a SF MaintenanceForm with a Toolbar on top and some entry boxes bound to fields of the BO1 which is the PrimaryBusinessObject on that form. The controls are bound to the BO1 through BBS, since they are DevExpress controls (I didn't use the wrapper, because I used DevExpress DataLayoutControl, which insists on using native DevExpress controls. Too bad that DataLayoutControl is not part of the wrapper...). One of the controls is a combobox with embedded list of values. This is the last control in the entry process, so when I enter it and select a value, and click Save on the toolbar, the value from that Combo box is not saved in the BO1. I'd have to change focus to another field before clicking Save to save its value. Any suggestions?
By Greg McGuffey - 10/5/2010

Just checking the basics first. You did bind the combo to the BO right? Sometimes I setup the filling of the combo (via enum or BO) and forget to actually bind it.
By Lukasz Kustusz - 10/5/2010

Yes, it's bound properly. I mentioned that if I move away from the combobox before the Save, I get the value properly stored in BO1 and saved. It's only when I leave the focus in the combobox and click on Save() that the value is not saved.
By Greg McGuffey - 10/6/2010

I'm checking on what might be causing the problem. I'll get back to you ASAP.
By Trent L. Taylor - 10/7/2010

This very well could be as there were some core data binding issues with the DevExpress combo out of the box and is why we extended it to include standard data item support....prior to binding.  This was a long time ago, however, and I have not spent much time with this control since.

You are welcome to supply a sample reproducing the issue and we will take a look.