<< Click to Display Table of Contents >>

 

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, Properties window, or FilterString Editor. The created parameter appears in the Field List's Parameters node.

A parameter in the Field List

Right-click the Parameters node in the Field List and select Add Parameter.

Create a parameter from the Field List

Specify parameter options in the invoked Add New Parameter dialog and click OK.

Add New Parameter dialog

Select a report and click the Parameters property's ellipsis button in the Properties window.

Create a parameter from the Properties window

Click Add in the invoked Report Parameters Editor dialog to add a new parameter. Specify parameter options and click OK.

Report Parameters Editor

You can create a parameter when you construct a condition in the FilterString Editor. Choose the Select a parameter field, click the field, and select Add Parameter in the invoked context menu.

Create a parameter from the Filter String editor

Specify parameter options in the invoked Add New Parameter dialog and click OK.

Add New Parameter dialog

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.

Parameter description

Specifies whether a parameter is visible in the Parameters panel.

Parameter editor

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.

Specify an expression for the Visible option

Show/hide a parameter's editor 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.

Disabled parameter editor

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.

Specify an expression for the Enabled option

Enable/disable 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.

Specify an expression for a parameter's Default Value option

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.

Allow Null Value option

When the Allow Multiple Values option is enabled, you can specify multiple values for a report parameter.

Allow Multiple Values option

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

Report Parameters with Predefined Dynamic Values

Date Range Report Parameters