> 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 return to the layout editor.

> 2 | Select the Payments table.

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

> 4 | On the Binding page, choose Dataset Parameter Binding. Dataset 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 | On 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 | On Edit data set parameter binding, choose OK to accept the new parameter value. Dataset Parameter Binding displays the new value of row["CUSTOMERNUMBER"] for the CustID parameter, as shown in Figure 13‑24.

> Figure 13-24 | 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 2008