Search code examples
jasper-reportsireport

How to prevent the repeated values in table of iReport-3.6.7?


I'm trying to create a report using iReport-3.6.7 IDE. I've added a dataset which I used for filling the values into a Table in the report's Details section. Everything is fine with the report compilation. But problem is that when I run the report in the IDE, it displays entire values as much is the number of tuples in the source table. i.e. if my table in source database has 16 tuples, then in iRepoort IDE the table is repeated 16 times. Please, don't tell me I'd place it in other sections e.g. Table Header, Table Footer, etc.


Solution

  • The problem was caused due to my bad approach to report design. Since everything we put into the Detail band of iReport gets populated at run-time, my table (which I'd put in Detail band of report) got populated as many times as of the tuple returned by the report's query.