Report parameters can be used to filter the report data or associate related reports together. This section guides you to add a report parameter into the report with Bold Report Designer.
To add a parameter, click on the Parameter
icon in the Data Configuration
panel. It opens the PARAMETERS
panel.
Next, click on the NEW PARAMETER
button in the PARAMETERS
panel.
Now, the following wizard will be displayed.
In Name field, type the name for the parameter or use the default name. By default, manually-created parameters name are similar to ReportParameter1
.
In Prompt field, type the text that appears next to the parameter when the user previews the report.
In Data type field, select the data type for the parameter value. The supported data types are Boolean
, DateTime
, Integer
, Float
and Text
.
Select Allow blank value, if parameter value needs to be set as an empty string or a blank value.
Note: If you specify valid values for a parameter, and you want a blank value to be one of the valid values, you must include it as one of the values that you specify. Selecting this option does not automatically include a blank value for available values.
Select Allow null value, if the value of the parameter needs to be set as null.
Note: If you specify valid values for a parameter, and you want null to be one of the valid values, you must include null as one of the values that you specify. Selecting this option does not automatically include the null value for available values.
Select Allow multiple values, if the value for the parameter should be multiple values. Null values are not allowed.
Set the visibility
option.
Click on Save
button. Now, the parameter will be listed under the PARAMETERS
pane like below.
Using the ProductID
parameter, we can filter the ProductID
field values at runtime like below.
(Details)
member field in the grouping panel to open the tablix member properties.
Tablix Member
properties, click on Set Filters...
button.
Equal
operator and assign the ProductID
parameter in the Value field. Save the filter.
ProductID
in the textbox and click on View Report
.
Download the above report design from link.