Create a Report Parameter

<< Click to Display Table of Contents >>

Raynet One Data Hub > 14.0 > 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.

 

Create a Report Parameter in the Report Designer

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.

 

field-list-parameters-section

 

Create From the Field List

Click the plus button in the Field List's Parameters node.

 

field-list-add-parameter

 

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

 

add-new-parameter-dialog

 

Create From the Properties Panel

Select a report, navigate to the Properties panel Data section, and click the plus button right to the Parameters node.

 

property-grid-add-parameter

 

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

 

add-new-parameter-dialog

 

Parameter Options

Name

The name by which you can reference a parameter in a report. Note that report parameters should have unique names.

 

Description

A parameter description that appears on a report's Print Preview in the Parameters panel.

 

parameter-description

 

Visible

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.

 

specify-expression-for-visible-option

 

Enabled

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-expression-for-enabled-option

 

Type

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).

 

Default Value

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-expression-for-parameter-default-value

 

papercliper

Note:

You can use only constants, operators, and date-time / logical / math / string functions in an expression for a parameter's default value.

 

Allow Null Value

When the Allow Null Value option is enabled, you can leave the parameter's value unspecified.

 

parameter-editor-null-value

 

Allow Multiple Values

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

 

eurd-web-parameter-editor-multiple-values

 

Select All Values

Enable the Select All Values option to use all elements from a custom set of values as a parameter's default value.

 

papercliper

Note:

You can specify the Select All Values option only when the Allow Multiple Values option is enabled.

 

Value Source

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