<< Click to Display Table of Contents >> RayVentory Data Hub > 12.5 u5 > Dashboards and Reports Customization Guide > Designing Reports > Use Report Parameters Create a Report Parameter |
This topic demonstrates how to create a report parameter in the Report Designer. The topic also describes the options you can specify for a report parameter.
In the Report Designer, you can create a parameter from the Field List and Properties panel. The created parameter appears in the Field List's Parameters node.
Click the plus button in the Field List's Parameters node.
Specify parameter options in the invoked Add New Parameter dialog and click OK.
Select a report, navigate to the Properties panel Data section, and click the plus button right to the Parameters node.
Specify parameter options in the invoked Add New Parameter dialog and click OK.
The name by which you can reference a parameter in a report. Note that report parameters should have unique names.
A parameter description that appears on a report's Print Preview in the Parameters panel.
Specifies whether a parameter is visible in the Parameters panel.
You can assign an expression to this option. The example below specifies an expression that shows/hides a parameter based on a value of another parameter.
Specifies whether a parameter editor is enabled or disabled in the Parameters panel. You can set this option to No to make a parameter's default value read-only.
You can also assign an expression to this option. The example below specifies an expression that enables/disables a parameter's editor based on a value of another parameter.
The type of parameter values. The following types are available:
•String;
•Date;
•Number (16-bit integer);
•Number (32-bit integer);
•Number (64-bit integer);
•Number (floating point);
•Number (double-precision floating point);
•Number (decimal);
•Boolean;
•GUID (Globally Unique Identifier).
A parameter's default value. This value is displayed in the Parameters panel when you open a report's Print Preview.
You can specify an expression for this option. For example, set this option to Now() to use the current date as a date parameter's default value.
Note: You can use only constants, operators, and date-time / logical / math / string functions in an expression for a parameter's default value. |
When the Allow Null Value option is enabled, you can leave the parameter's value unspecified.
When the Allow Multiple Values option is enabled, you can specify multiple values for a report parameter.
Enable the Select All Values option to use all elements from a custom set of values as a parameter's default value.
Note: You can specify the Select All Values option only when the Allow Multiple Values option is enabled. |
Use the Value Source option to specify a custom set of values a parameter can accept. You can create a static list of values, load values from a data source, or specify a date range. Refer to the following topics for more details:
•Report Parameters with Predefined Static Values