its simple.. when u create a jasper report it has a Parameter map that configure the input parameter. While running ur java file for Jasper report,just set values in this Map. In case of iReports...U need to Set a default(hardcoded) value in report parameters.Test the report on default values once it gives proper output get its .jrxml , .jasper files to generate reports with parameter map..Only thing that matters is u have to keep parameter names in ireport and java file same..(thats quite obvious !!!)
On Mon, 08 Aug 2005 Rafael Taboada wrote : > Talking about JasperReports and iReports... I'm trying to generate my >reports using iReports in order to make my .jrxml. I'm trying to make my SQL >query but this query needs some parameters. For example I want to generate a >report about a specific costumer... So I have to send costumer id in order >to get all data about only this costumer... > How can I do that?... In my query: > SELECT ..... FROM .... WHERE CustomerId=? > How can I send a parameter to jasperreports???? > Thanks in advance and forgive if this message is off-topic > > >-- >Rafael Taboada >Software Engineer > >Cell : +511-97753290 > >"No creo en el destino pues no me gusta tener la idea de controlar mi vida"