13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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).<strong>iReport</strong> reads the fields of the addresses table and presents them in the next screen of the Wizard, as shown inFigure 2-17.27

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

Saved successfully!

Ooh no, something went wrong!