Previous Next

Task 8:  Link the orders subreport to the customers master report

You link the orders subreport to the customers master report by binding the CustID parameter to the CUSTOMERNUMBER data set field in the customers report. Each time the customers report reaches a new customer row, the CustID parameter is updated with the new CUSTOMERNUMBER value.

1  
2  
3  
4  
Data Set Parameter Binding displays the CustID parameter, as shown in Figure 12-15. Its value is set to the default, 103, which you specified when you created the data set parameter.

Figure 12-15 Data Set Parameter Binding for the Orders table

Figure 12-15  Data Set Parameter Binding for the Orders table
5  
1  

Figure 12-16 Edit data set parameter binding

Figure 12-16  Edit data set parameter binding

Expression Builder button

2  
3  

Figure 12-17 CUSTOMERNUMBER field in the expression builder

Figure 12-17  CUSTOMERNUMBER field in the expression builder
Choose OK to save the expression and close the expression builder.
4  

Figure 12-18 Updated data set parameter binding

Figure 12-18  Updated data set parameter binding
6  
7  

Figure 12-19 Preview of the report shows correct orders data

Figure 12-19  Preview of the report shows correct orders data
Now different order records appear for different customers. Not all customers have order records. To display only customers that have orders, you change the query for the customers report. This task is described later in Task 11: “Display only customers that have orders or payments.”

(c) Copyright Actuate Corporation 2013