> ### Task 10: Link the payments subreport to the customers master report

> You link the payments subreport to the customers master report by binding its CustID parameter to the CUSTOMERNUMBER field in the customers report.

> 1 | Choose Layout to resume editing the report.

> 2 | Select the Payments table.

> 3 | In Property Editor, choose the Binding tab.

> 4 | In the Binding page, choose Data Set Parameter Binding. Data Set Parameter Binding displays the CustID parameter. Its value is set to the default, 103, which you specified when you created the data set parameter.

> 5 | Change the parameter value to the CUSTOMERNUMBER field in the customers report.

> 1 | Select the parameter, then choose Edit. A dialog prompts you specify a parameter value.

> 2 | Choose the expression builder button that appears on the right of the Value field.

> 3 | In the expression builder, choose Available Column Bindings, choose List, then double-click CUSTOMERNUMBER. The expression builder displays the expression row["CUSTOMERNUMBER"]. Choose OK to save the expression and close the expression builder.

> 4 | In Edit data set parameter binding, choose OK to accept the new parameter value. Data Set Parameter Binding displays the new value of row["CUSTOMERNUMBER"] for the CustID parameter, as shown in Figure 12-22.

> Figure 12-22 Modified data set parameter binding for the Payments table

> 6 | Choose OK to save the changed data set parameter binding.

> 7 | Preview the report. Now the report displays different payment records for different customers. Not all customers have payment records. To display only customers that have payments or orders, you change the query for the customers report.

(c) Copyright Actuate Corporation 2013