-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
In the previous report, we have shown the sales number, sales date, sales desk number, ID, and name, of both the employee and the customer. Now, we want to show the sales details (product ID, name, quantity, and price) at the bottom of the reports. For this, we have to create another report showing the sales details, and we want to see the output of that report at the bottom of the sales data shown in the report prepared in the previous recipe. To show the output of a report inside another report, a subreport is used.
A subreport is an entire report which is placed in another report. If you have one item that is linked to several items in another table, such as a sales report containing sales details, then a subreport is what you need. In such a case, generally the main report (where the subreport is placed) contains the data of the master/parent table, and the subreport contains the data of the detail/child table. For example, one "Sales table" has many "Sales_Details...
Change the font size
Change margin width
Change background colour