Binding Combobox Issue


Author
Message
LeRoy Jackson, Jr.
LeRoy Jackson, Jr.
StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)
Group: Forum Members
Posts: 14, Visits: 55
Hello Everyone!  I am very new to this so this is probably a very simple question.

I have droped my primary BO (Library1) on my my form.  On the text boxes, everything is bound correctly, however on my combobox doesn't show anything.  I created a second BO (Authors) so that the combobox's values would be populated from that. I created a method called FillAll that belongs to the Authors' BO.  This is what I have set on the combobox's property: combo.PopulationType = Busniess object, combo.PopulationDataSourceSettings = Authors.FillAll(), combo.BusinessObject = Library1, combo.BindingField = AuthorName.

 

If I remove the Businessobject and bindingField, The combo is populated but not Bound to the Record.  When I put it back, It is not populated and the values are not loaded.

What am I missing?

Thanks In Advance.

LJ

Replies
multiSingularity
multiSingularity
StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)
Group: Forum Members
Posts: 9, Visits: 17
I am binding on SelectedValue, as it is the ID that I need to store, not the Description.



Do you have some sample code that illustrates binding a combo box to a BO, but populating it from a different BO? Or if not, even just binding to a BO? The only stuff I've seen populates from an enum, and I believe I have followed the instructions in the SF help, to no avail.
multiSingularity
multiSingularity
StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)
Group: Forum Members
Posts: 9, Visits: 17
Oh yes, and the PopulationDataSourceSettings Value member is set to the ID as required.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search