<< Click to Display Table of Contents >> RayVentory Data Hub > 12.5 u5 > Dashboards and Reports Customization Guide > Designing Reports > Use Report Parameters Reference Report Parameter |
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.
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.
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. |
You can reference a report parameter in expressions of controls and calculated fields.
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.
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:
•Conditionally Change a Band's Visibility
•Conditionally Change a Control's Appearance
You can use a report parameter in a control's Text property.
This allows you to create a placeholder (embedded field) that is substituted by a parameter value.
Refer to the following topic for information on embedded fields: Use Embedded Fields (Mail Merge).
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.
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 |
|
Pass report parameters to a stored procedure |
SQL Data Source |