iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library

13.07.2015 Views

iReport Ultimate GuideFigure 2-14Report Wizard – Template Selection2. Select the template and click Launch Report Wizard to proceed with the report creation. (You can create a simple reportthat duplicates the selected template just by clicking Open this Template. However, we’ll use the wizard for thisexample.)Figure 2-15Report Wizard – New Report Name and Location26

Getting Started3. In the third step, select the JDBC connection we configured in the previous step. The wizard will detect that we areworking with a connection that allows the use of SQL queries and will prompt a text area to specify an SQL query(Figure 2-16). Optionally, we can design the query visually by clicking Design query.We assume that you know at least a bit of SQL, so we will directly enter a simple query, as follows:select * from address order by cityFigure 2-16Report Wizard – SQL Query4. Click Next. The clause “order by” is important to the following choice of sort order (I will discuss the details a little later).iReport reads the fields of the addresses table and presents them in the next screen of the Wizard, as shown inFigure 2-17.27

<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>Figure 2-14Report Wizard – Template Selection2. Select the template and click Launch Report Wizard to proceed with the report creation. (You can create a simple reportthat duplicates the selected template just by clicking Open this Template. However, we’ll use the wizard for thisexample.)Figure 2-15Report Wizard – New Report Name and Location26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!