ComboBox vs. ComboBoxEdit


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Very nice.  It works as you suggested.  Simple.  Sweet.  Effective.

Btw, for any else who may need this, my namespacing syntax for assigning the enum to the custom type of the BO was as follows:

ApplicationName.ProjectName.ClassName.EnumName

Smooooth

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Well...that makes sense.  I'll check it out tomorrow.  Thanks, again!! Smile
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
The problem that you are having is the Enum in this case.  The DevExpress Enum is trying to save the value back as an Enum value rather than the integer.  This is a common problem with the DevEx combo.  You can actually work around this problem by making sure that your BO has that field strong-typed as that enum type rather than an integer.  For example, your divisionindex property is probably not currently typed as the Enum to which you are binding, but rather an integer.  If you open up the BO Mapper, and add a customization to the divisionindex field to be typed as the Enum (Division) then rebuild your partial class, your bindings should start working.  SF will manage the value back to the database as an integer for you but it will allow you to communicate in code (or the DevEx bindings) as an enum which is really nice on the code side of things because you can use the Intellisense.

We are back in the office and trying to catch up...lots to do Smile  So sorry for the slow responses, but we are getting back on top of things. Wink

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Hi Paul,

Attached is the properties screen snippet.

Thanks!
Bill

Attachments
ComboBoxProperties.JPG (198 views, 58.00 KB)
Paul Chase
Paul Chase
Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Bill,

I use the Combo Edit controls throughout my app with both Enums and Business Objects as the Population Datasource without any problems so they "should" work. It kinda sounds like you did not bind it to anything . can you post a screenshot of the properties sheet with the SF stuff?

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Still looking for help on this one...bump... Smile
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Little activity on the forums, again, today.  Are the SF gang still out?  Still need help on this issue, too.

Thanks!
Bill

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
ROFL!
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
For those with cold hands, maybe a little mouse sweater would be nice. Tongue

Thanks,
Bill

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Bill,



I've had no experience with DevX controls, so I'm no help at all. However, I'm sure that those who do will respond...once the holiday season is over. They're probably out perusing the after Christmas sales, looking for that special xmas mouse pad or maybe little ear muffs for their mice... w00t



Just bump this one up next Wednesday if you haven't gotten a response yet.
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