Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
|
Hi Edhy.
Remember the BrowseDialog ended up having only an AND possibility between all arguments, guess it is a price for the generic approach. In the beginning, I tried to build something generic too, but after a while gave it up, maybe too soon, and now for each XYZ report, I will have at least an XYZReportCriteria form, an XYZDataSource class file, an XYZBBS business binding source and an XYZLayout.xml.
The ReportCriteria form will call a Populate method in the DataSource class, which will check all conditions from the arguments passed and build the Command to query the database, returning back the business binding source populated so the form can then use a ReportViewer using the .xml layout set for it.
Attached is a picture of a basic sample. Some reports, of course, will involve lots of BOs.
Abraços.
Ivan
|