Report Designer using the web to make a master-slave table

Description: There are two tables from the master table relationships, how to display in the report. The election of two tables, a sales table, a table is a product attribute, product attribute table to table selling the product in detail.

Step a: addition of the data source

Click on the data source , data acquisition for a statement entered: "select regions, product, sum (sales) as the sum of sales from regional sales group by product" to get the sum of sales data areas, products, and products from regional sales table set, according to the product packet, the data source ds1.

Click on the data source , obtain statements in the input data set: "select * from product attribute" data source ds2.

Step two: Create a worksheet

Ds1 area taken from a data source, the product, and the sum of the volume data set into a worksheet, to remove the product ID in the data source ds2, the product type, number of units, unit price data set, making the worksheet below, the non-data collection unit grid "area" of the cell left the parent div as the data source ds1 area where the cell, all the cells in non-data sets in addition to the parent cell to the left to set the cell data source ds1 product data set where the data source ds2 product ID data set is also provided to the left parent lattice cell data sources ds1 product data set resides.

 

Step three: Set the filter criteria

In the selected cell ds2 product ID data source data set is located, to the right input attribute column filters: @ {Name} == C4, the product name data demonstrate ds2 centralized data source and the data source selected product ds1 name of the product the same data.

Step four: Preview report

 

Step Five: Save Report

Save the template, the template name from the main table.

 

Published 39 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/efreport/article/details/90400179