StrataFrame Forum

Combobox - blank items

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

By Wil Cantrell - 12/5/2006

Hello StrataFramers! Tongue

I have a Strata-combobox on my form bound to a secondary business object. It looks like it's being populated because it has an item count of 14 at runtime. However, nothing is displayed in the list except the TopMostItem. The Value property changes with the primary BO, yet nothing is displayed.

My table has two fields: CategoryID int32, and Description string

Here are the properties I set:

PopulationDataSourceSettings:
Business Object Type: CategoryBO // the secondary business object
Method to Execute: Populate() // the method that fills the table
Display Member: {0} - Description
Value Member: CategoryID
PopulationType: BusinessObject

If the answer is obvious, I'll spare you the rest of the details.

Thanks!

By StrataFrame Team - 12/5/2006

Is the combo box disabled?  Or is it enabled and when you open the dropdown, only the TopMostItem is visible?
By Wil Cantrell - 12/5/2006

The box is enabled when you go in edit mode and the selection "looks" like it's changing with the record. In other words, one record, the highlight will be two spaces down in the list and the next, the highlight is 8 spaces.
By StrataFrame Team - 12/5/2006

Did you place anything in the "Display Member Format String" field?  You'll have to put {0} if you want it to be replaced by that first field... the format string field is used for if you have more than one field you want to show... say you have a {0} and a {1}, then you can create a string like this "{1}, {0}" for the format string.
By Wil Cantrell - 12/5/2006

That's it. w00t I didn't put anything there, assuming that with one item this option would be automatic.

Thanks!!

By StrataFrame Team - 12/5/2006

No problem Smile