Combobox - blank items


Author
Message
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)
Group: Forum Members
Posts: 23, Visits: 129
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!

____________________
Programmer/Analyst
Captain D's, LLC

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Is the combo box disabled?  Or is it enabled and when you open the dropdown, only the TopMostItem is visible?
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)
Group: Forum Members
Posts: 23, Visits: 129
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.

____________________
Programmer/Analyst
Captain D's, LLC

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)StrataFrame Beginner (37 reputation)
Group: Forum Members
Posts: 23, Visits: 129
That's it. w00t I didn't put anything there, assuming that with one item this option would be automatic.

Thanks!!

____________________
Programmer/Analyst
Captain D's, LLC

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
No problem Smile
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