Group: Forum Members
Posts: 524,
Visits: 30K
|
No, I am talking about SQL Server objects, views that are actually a permanent part of the SQL database. Once you have that, you can create a SF BO just as you would for a table and use that as the source for your browse dialog. Since it has all the detail information you need to do your selection, it is one stop shopping for any params your browse dialog uses to build the query that will get your records.
Once you have those records, you also have the keys that identify the customers in the set. Now you can present the user with :
All the returned rows, in which the customer may be represented more than once, but if that isn't a problem, selecting a row selects a customer.
or
A row for each single customer in the result set so the user sees just customers and picks one
or
All the customers represented in the returned set being used to fill the CustomersBO.
So, important points are :
Customers' "child" info denormalized by using a SQL View ( not ad hoc )
Browse dialog using that view for the ad hoc query it builds from your params
result set identifies customer or customers
customer keys used to fill the customersBO, which is a regular table based BO.
This is not the out of the box implementation of the browse dialog, which at its simplest uses one table for both the search and final BO on the form, but it is the most flexible for doing what you want, which is to find customers based on "child" records of customers.
|