O'Reilly logo

iReport 3.7 by Shamsuddin Ahammad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Using Parameters

In the previous chapter, we created a SalesDetails report, which shows the Product Name, Unit Price, Sales Quantity, Total, and Grand Total of Sales No : 1 (One). This report shows the data of only Sales No. 1. So what will we do if we want to see the details of Sales No. 2, or 3, or others? Of course, we will not develop reports for each Sales No. because thousands of Sales Nos. will be generated. We will use a technique where we will develop only one report, which will work for any Sales No. In the SalesDetails report of Chapter 4, Using Variables, we hardcoded the SalesNo in the SQL commands. That's why it works only for Sales No. 1. In this chapter, we will use parameters instead of hardcoded data in the report. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required