Task 5: Build a data set for the payments subreport
In this procedure, you build a data set to indicate what data to extract from the Payments table. The payments subreport that you create later uses this data set.
4 In Query, in Available Items, expand CLASSICMODELS, then expand the Payments table to display the columns in the table.This statement selects the PAYMENTDATE and AMOUNT columns from the Payments table. The WHERE clause has a parameter marker for the value of CUSTOMERNUMBER. When the report runs, the payments subreport gets the current CUSTOMERNUMBER value from the customers report.
7 In Edit Data Set, create a data set parameter to supply the CUSTOMERNUMBER value for the WHERE clause.
8 Choose Preview Results to confirm that the query returns the correct data. Figure 13-6 shows the data rows that the data set returns for customer number 103.Figure 13-6 Data preview for the payments subreport
(c) Copyright Actuate Corporation 2012 |