Hello,
I would to know the way how you can print a basic model made of parameters (no database connection used) in i report 4.6.0 as showen in the image below.
Thank you.
1 Answer:
Posted on May 19, 2013 at 12:19pm
You cannot use the detail band, if you do not have a set of datarecords to print. Instead set the report property "When no data type" to "All sections, No detail" and use the title or summary band to layout your single value parameters.
If you want to print a collection of records in your report, you could use a collection of java beans (representing a record set) as a datasource:
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{MyBeanCollection})
Of course, you will have to build the bean collection first outside the report...
Cheers, Thomas