Posted by : Akshay Patil
Tuesday, 16 June 2015
In iReport to pass parameter from Main report to Dataset use following steps:
1. Create parameter in main report section.
2. Set parameter properties accordingly.
3. Add new dataset by right click on main report.
4. Add parameter in dataset by right click on dataset.
5. Drag “Table” element
on report and select appropriate dataset as data source for it.
6. Right click on table in report and click on “edit table datasource”
7. Below window will appear.
8. Select “parameters”
tab and click on add button.
9. Select dataset parameter name from select list to which
we want to pass parameter from main report. Click on pencil to add value
expression to select parameter.