Combobox not propagated to BO when Save clicked


Author
Message
Lukasz Kustusz
Lukasz Kustusz
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 29, Visits: 125
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?
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
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.
Lukasz Kustusz
Lukasz Kustusz
StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)StrataFrame Beginner (49 reputation)
Group: Forum Members
Posts: 29, Visits: 125
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.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm checking on what might be causing the problem. I'll get back to you ASAP.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search