A parameter is a variable whose value is input at runtime. If a report contains a parameter, you need to specify a value for the parameter when running the report. The runtime parameter dynamically controls your report result.
The topic shows how to create and use local parameters in a web report and specify values for the parameters used in a web report.
When working with a web report, sometimes you may find that the predefined parameters in the catalog cannot meet your requirements, in which case, you can create some local parameters and use them in the report to get the desired data. Then when you save the web report, the local parameters will be saved along with it as its resources.
Local parameters are report level resources, which means they are only available to the report for which they are created.
To create a local parameter:
in the Value text field and select <Add Parameter…> from the Local Parameters node of the drop-down list.
on the Standard toolbar to display the Filter dialog, select the component in the web report to which you want to apply the filter from the Apply to drop-down list, select the field to be filtered from the Field drop-down list, then click the button
in the Value text field and selecting <Add Parameter…> from the Local Parameters node of the drop-down list.
The Add Parameter dialog appears.
to add a value line, double-click in it and then type in a value of the specified data type.
If the parameter is of Date, DateTime, or Time type, you can also click the calendar button
to set a date and time value using either calendar or expression functions in the Calendar dialog. If you use an expression to specify the value, when you hover the mouse pointer over this value, a tip will appear showing its expression. Click on the value, the expression will be displayed in the value text box and you can edit the expression in the text box directly if you want. After editing, when you click elsewhere outside of the value text box:
To adjust the order of the values, click
or
; to remove any unwanted value, select it in the list and then click
.
to add a parameter row.To adjust the order of the parameters, click
or
; to remove any unwanted parameter from the cascading group, select it and then click
.
To further edit the parameter, right-click it and select Edit from the shortcut menu. Then in the Edit Parameter dialog, edit the parameter as required.
To remove the parameter, right-click it and click Delete on the shortcut menu.
Once a local parameter is created, you can then use it to dynamically filter data of the web report, add it to a parameter control or parameter form control in the web report, or reference it in a dynamic formula used in the web report.
When running a web report with parameters, a dialog is displayed for you to specify parameter values. After the report is opened in Web Report Studio, you can change the parameter values using the following ways.
The Parameters panel is available when the current web report uses parameters. It lists all the parameters used by the report with your last-time saved default values, which could be the values saved in this panel last time, or in the Enter Parameter Values dialog, Parameter Settings dialog, or when advanced running or scheduling the report. If you have not yet set the default values on the server, or if you did but your last-time saved default values cannot fully match the current parameters, all the parameters will use their default values specified in the parameters' definition as the initial values.

Edit the values according to your requirement and then click Apply to make the report run with the specified parameter values. You may specify parameter values in these ways.
If you want to save the current specified parameter values as the default values for the report, select Save as default in the panel (to make this option available, you need to make sure the Enable Setting Default Parameter Values For Web Report is selected in the Profile > Customize Server Preferences > Advanced tab).
If you would like the report to run on the console with the saved default values directly next time, without popping the Enter Parameter Values dialog, unselect Re-enable Parameter Screen, which is available when the option Enable Hiding Initial Parameter Dialog For Web Report is checked in the Profile > Customize Server Preferences > Advanced tab. Note that if later the last-time saved default values cannot completely match the report parameters, the parameter dialog will still be displayed. You can check this option to show the Enter Parameter Values dialog again after it has been hidden.
The above two options are user-report level settings, that is to say, they take effect when both the same user and report are matched. This also applies to admin users, and therefore admin cannot customize the settings for all users.
If you want to reset the parameter values, use the Reset button, which varies on different situations:
You can insert a parameter control and bind it with a parameter used by the current report. By specifying values to the parameter in the parameter control, you can pass the parameter values to JReport and run the report with the specified values. For details, see Using parameter control to specify a parameter to a report.
You can insert a parameter form control, make it run the current report, bind it with one or more parameters used by the report. By specifying values to the parameters in the parameter form control, you can make the report run with the specified parameter values. For details, see Using parameter form control to run reports.