BO form with a drop down list to pick a related BO


Author
Message
thegwill
thegwill
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 16, Visits: 177
I cannot get my WinForms app to work correctly with my related business objects.

I have the following object model:

  • BOMain links to exactly 1 BOLookup so it has a FK to BOLookup. i.e. BOMain.FK_Lookup

I have a maintenance form to maintain BOMain objects. The form has a drop-down list to choose a BOLookup to link the BOMain instance to.

The problem I'm having is with the BOLookup drop-down list. I cannot get any items to appear in the drop down list. I can confirm the following:

  • The database is populated correctly
  • I have a BO for BOLookup
  • I have a BO for BOMain
  • I have created a .ParentRelationship on BOMain to wire up to BOLookup
  • My form has a BOMain "object" (named BOMainInstance for this example)
  • My form has the .PrimaryBusinessObject = BOMainInstance
  • My form has a SF combo control with the following settings: .BindingField = FK_Lookup, .BusinessObject = BOMain, .PopulationDataSource = BOLookup.FillAll(), .PopulationType = BusinessObject
  • My form does NOT have a BOLookup "object" as I believe the combo control will create its own instance behind the scenes
  • All other data maintenance functionality on the form is working correctly

I'm expecting the drop down to sync with the correct linked object for existing records and allow the user to choose an alternate linked item to link to

When I run the app, the drop down list on the form is always empty. When the drop down is expanded, it shows a number of "blank" rows (which is the same number of rows as there are in the Lookup table so I'm assuming the relationship is "working" but the UI isn't set up correctly)

Any ideas what I've missed?

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