-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
In this recipe, we are going to create a report that shows the list of sales.
Go to File | New File….
Select Report from Categories and Report Wizard from File Types.
![]() |
Click on Next.
Select Simple Blue from Layout:
![]() |
Enter Sales.jrxml as the File Name, and type in Reports as the Folder:
![]() |
Click on Next.
Click on the New button to create a new connection.
Select NetBeans Database JDBC Connection as the datasource type:
![]() |
Enter Sales for Name and select jdbc:mysql://localhost:3306/Sales from the Connection list, as shown in the following screenshot:
![]() |
Click on Save.
Click on Design Query.
Double-click on the Employee, Sales, and Customer tables.
Select SalesNo, SalesDate, and SalesDeskID from Sales; EmployeeId and Name from Employee; CustomerNo and Name from Customer:
![]() |
Click on OK.
![]() |
Click on Next and select all the fields:
![]() |
Click on Next, and then again click on Next without selecting any group.
Click on Finish.
Change the Title to Sales Invoice, remove the data from the Add a...
Change the font size
Change margin width
Change background colour







