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
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
It is more than likely going to be one of two things, or both.

  1. On the PopulationDataSource property (within the designer) ensure that the Value Member is set to the proper field (this is the vallue that will be stored exposed through the Selectedvalue property of the combo).
  2. If you are using the Selectedvalue property to which to bind (the default) the #1 is probably your issue.  Otherwise, you can change the BindingProperty to Text instead of Selectedvalue on the combo itself which will then use the Text property (which is probably already displaying correctly).

Either or both of these should get you going in the right direction.

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.
Lesscher
Lesscher
StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)
Group: StrataFrame Users
Posts: 9, Visits: 19
Hi all, I have the same issue here and I would like to see a small sample to, if that's possible.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi guys,

Please download a combobox sample posted by Trent on the forums sometime ago.

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

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
There are a lot of samples that come with SF that show how to populate a combo including the sample that Edhy reposted.  please look at those as I am sure that through the examples you can compare and see what you are missing.  Thanks.
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