Table of Contents

Reference Report Parameters

After you create a report parameter, you can reference this parameter in the report's filter string, in expressions, and in a control's Text property. You can also bind control and data source parameters to report parameters. Refer to the sections below for more details.

Reference in a Report's Filter String

You can reference a report parameter in the report's filter string. This allows you to conditionally filter the report's data loaded from a data source.

reference parameter in report filter string

Tip

When you use a report's filter string to filter data, all the data is loaded from a data source before the filter is applied. If you use a large dataset, filter data at the data source level. Refer to the following topic for more information: Filter Data at the Data Source Level.

Reference in Expressions

You can reference a report parameter in expressions of controls and calculated fields.

Reference report parameters in expressions

This allows you to conditionally change the data a control or calculated field displays.

You can use the Field List to create an Label control that displays only a parameter value. To do this, drag the parameter from the Field List and drop it onto the report's band.

Drag and drop a report parameter

You can also use parameters in expressions to specify the visibility of a report's bands or conditionally change a control's appearance. Refer to the following topics for more information:

Reference in a Control's Text Property

You can use a report parameter in a control's Text property.

Reference a parameter in a control's Text property (Designer)

This allows you to create a placeholder (embedded field) that is substituted by a parameter value.

Reference a parameter in a control's Text property (Preview)

Refer to the following topic for information on embedded fields: Use Embedded Fields (Mail Merge).

Bind Control Parameters to Report Parameters

You can create parameters for the CrossTab and Chart controls and bind these parameters to report parameters. This allows you to conditionally filter data at the control level. Refer to the following topic for details on how to filter data for the Сhart control: Use Charts to Visualize Grouped Data.

You can also specify a parameter for the Subreport control and bind this parameter to report parameters. This allows you to pass parameter values from the main report to the subreport and conditionally change the subreport's data and appearance.

Bind Data Source Parameters to Report Parameters

You can create parameters for data sources and bind them to report parameters. The table below contains information about which tasks this allows you to solve, a data source for which the task can be solved, and links to documentation sections you can reference for details.

Task Data Source Documentation
Filter data at the data source level SQL Data Source Bind a Report to a Database
Pass report parameters to a stored procedure SQL Data Source Specify Query Parameters
Pass report parameters to a method that loads data Object Data Source Bind a Report to an Object Data Source

When you bind a report to the JSON Data Source, you can specify a URI from which a JSON file should be loaded. You can bind path parameters, query parameters, and header parameters to report parameters to conditionally configure HTTP requests to the web service endpoint. Refer to the following topic for details: Bind a Report to JSON Data.