Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
No, you do not need to use the BusinessBindingSOurce. Instead of trying to explain all of the features of a combo box, I will direct you towards some of the samples and give a brief example here. I highly recommend downloading the StrataFlix sample as this is going to be shown a number of times in the maintenance dialogs. Also, there are some additional samples that come with the framework, specifically Multi-Combo Sample (shows how to have multiple columns, but also shows how to use the PopulationDataSourceSettings). This sample will first show you how to use the PopulationDataSourceSettings, not populate from a foreign key, but this is the first step to understanding combo population.
Next, you can create a Fill method on your BO that loads the child records (or you may be able to use the FillByParentPrimaryKey method if this is truly a foreign key and has been setup on your BO). This method will accept a parameter (i.e. the primary key of the parent record). You will then supply this value in the ListPopulating event of the combo box (which is the foreign key) and the combo will populate with the child records.
I know that I have given you a 10000 foot view here. The reason is that there are a lot of samples as well as documentation showing how to do this so I was just trying to give an overview instead of step by step.
I HIGHLY recommend getting the StrataFlix sample running as we will use this as a direct reference through this forum to get you going as there are samples to cover all of these types of things in there giving a more real world example.
|