> Tutorial 3: | Building a report containing side-by-side subreports

> This section provides step-by-step instructions for building a report that displays a list of customers. For each customer, the report displays order and payment information. The order information and payment information are in separate, adjacent subreports. The customer report is the master report, which is also called the outer report. The orders and payments subreports are the detail reports, which are also called the inner reports.

> Each report accesses data from a different table in the sample database, Classic Models. The customer report, orders subreport, and payment subreport use data from the Customers, Orders, and Payments tables, respectively.

> A common field, CUSTOMERNUMBER, links the reports. The value of the linking field in the master report determines what data appears in the detail reports. For example, if the customer number in the master report is 173, the detail reports display the order and payment information for the customer whose ID is 173.

> Figure 13‑1 shows a portion of the finished report.

> Figure 13‑1 | Customers master report including order and payment subreports

> In this tutorial, you perform the following tasks:

> n | Create a new report.

> n | Build a data source.

> n | Build a data set for the customer report.

> n | Build a data set for the orders subreport.

> n | Build a data set for the payments subreport.

> n | Create the customer master report.

> n | Create the orders subreport.

> n | Link the orders subreport to the customers master report.

> n | Create the payments subreport.

> n | Link the payments subreport to the customers master report.

> n | Display only customers that have orders or payments.

> n | Display the subreports next to one another.

> n | View the outline of the report.

(c) Copyright Actuate Corporation 2009