View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Report Parameters

This document describes the main concepts of using parameters in the Web Report Designer and provides information on how to create parameters and pass their values.

The document consists of the following sections.

Using Parameters

Report parameters provide the capability to pass data of a certain type to a report and are commonly used to achieve the following goals.

Create Parameters

To create a new report parameter, do the following.

  1. Switch to the Field List panel, select the Parameters node and click the Add parameter button.

    eud-report-parameters-0

  2. Click the Edit button (the ‘pencil’ icon web-report-designer-edit-query) to expand the property list and specify the parameter’s Name, Description, Type and the parameter’s default Value.

    eud-report-parameters-1

    Enable the Visible property to make the parameter visible in the Print Preview and allows modifying its value before report creation.

    In this example, keep the Look-Up Settings property set to No Look-Up. To provide a list of pre-defined values for the parameter, set the Look-Up Settings property to a Static List or Dynamic List.

    • Static List

      If you choose this item, you can manually fill the list of parameter values with each value having an individual description (specifying how this value appears in the user interface available in a Print Preview).

      eud-report-parameters-2

    • Dynamic List

      If you choose this item, you can specify a parameter’s data source, data adapter and data member. The value member defines a data field that provides values to the parameter. The display member defines a data field that provides display names for parameter values (how these values appear in the user interface available in a Print Preview).

      eud-report-parameters-3

      The specified data member should conform to the data type specified for the parameter.

  3. To define a filtering criteria for the report, switch to the Properties Panel, and in the Actions or Data category, click the ellipsis button for the report’s Filter String property. In the invoked Filter Editor, construct the filtering expression.

    To access parameters, expand the drop-down menu for a value placeholder and select the Parameter item. This will convert the value placeholder into a parameter placeholder. Click this placeholder to insert the required parameter.

    eud-report-parameters-4

Pass Parameter Values

To view the resulting report in the Web Report Designer, click the Preview button web-designer-main-toolbar-preview of the Main Toolbar and specify the values of the required report parameters and data source parameters in the Preview Parameters Panel.

eud-report-parameters-5