> ## 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 12-1 shows a portion of the finished report.

> Figure 12-1 Customers master report including order and payment subreports

> In this tutorial, you perform the following tasks:

> | Create a new report.

> | Build a data source.

> | Build a data set for the customer report.

> | Build a data set for the orders subreport.

> | Build a data set for the payments subreport.

> | Create the customer master report.

> | Create the orders subreport.

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

> | Create the payments subreport.

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

> | Display only customers that have orders or payments.

> | Display the subreports next to one another.

> | View the outline of the report.

> | Format the report.

(c) Copyright Actuate Corporation 2013