Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Edhy is going down the right path with the custom property if you are going to be binding to a foreign key value from another table. If you have a foreign key value and want to show the description or title from that table, then you will more than likely just want to create a custom property that calls a scalar method that retrieves the description for display purposes. Another option would be to create a combo box and use the PopulationDataSource settings. This is geard for this very thing when dealing with smaller lookup table datasets (200 records or less). You can create a Fill method on the Foreign Key table BO that just pulls back the PK and the description columns. Then use an SF combo and populate using a BusinessObject. You will set the PopulationDataSourceSettings to use the BO of the foreign key value, the Fill method you created to pull back just the PK and the description column, and then set the Display Member to show the description and the Value Member to the foreign key field. This will setup the very scenario that you are trying to accomplish.
|