Using parameter form control to run reports
A parameter form control is a web control that is bound with the parameters used by the current report or other reports. By specifying values to the parameters in a parameter form control at runtime, end users can make the reports run with the specified parameter values.
To insert a parameter form control into a report:
- Do one of the following:
- Drag Parameter Form Control from the Toolbox panel to the destination.
- Click Insert > Web Controls > Parameter Form 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 Form Control from the drop-down list, then click the mouse button in the destination.
The Insert Parameter Form Control dialog appears. See the dialog.
- Specify the target reports to run using the parameter form control.
- To run the current report, select Current Report, then specify the parameters used to run the report from the Select Parameters box.
- To run other reports, select Others, then select the reports you want to run. If all the selected reports contain no parameters, you cannot finish the dialog.
- Specify whether to include the Submit button in the parameter form control. If Submit is included, it is used to submit the parameter values end users specify in the parameter form control. If Submit is not included, once end users change the value of a parameter in the parameter form control, the new value will be applied automatically.
- When done, click OK to insert the parameter form control into the desired destination.
See also Insert Parameter Form Control dialog for detailed explanation about options in the dialog.
Note: If you save a report containing a parameter form to another directory or publish it to local directory or to JReport Server, the reports that you selected in the parameter form in order to run will not be saved or published along with the report.