Using parameter control to specify a parameter to a report
A parameter control is a web control that is bound with a parameter used by the current report. By specifying values to the parameter in a parameter control at runtime, end users can pass the parameter values to JReport and run the report with the specified values.
Parameter controls do not support inserting cascading parameters. If you want to do this, use parameter form controls instead.
To insert a parameter control into a report:
- Do one of the following:
- Drag Parameter Control from the Toolbox panel to the destination.
- Click Insert > Web Controls > Parameter Control on the menu bar, then click the mouse button in the destination.
- On the Insert toolbar, click the down arrow on the Insert Control Objects button and select Parameter Control from the drop-down list, then click the mouse button in the destination.
The Insert Parameter Control dialog appears. See the dialog.
- In the dialog, specify the parameter you want to add to the parameter control from the Select a Parameter box, which lists all the parameters except cascading parameters used in the current report.
- When done, click OK to insert the parameter control into the desired destination.