Parameters

The Report Designer allows you to use parameters to filter and otherwise manipulate the data to display in a report. You can prompt users for parameter values so that they control the contents of the report.

The example below shows a report that uses 2 parameters, in the Parameters Pane on the left of the preview window, to allow the user to define which Attribute will be summed, and how the data will be grouped.  This report is available in the report Designer under Stardraw Reports | Summary Reports | Configurable Report.

Report preview with the Parameters pane 

Report Parameters

Report parameters are managed in the Data tab of the property inspector, on the right of the designer. The parameter settings control how and whether a user interface is presented to your users for each parameter. Parameter values are collected in the order they appear in the Parameters list.

You need to set the following properties to create a parameter:

  1. Enter a report parameter name. Each report parameter in the collection must have a unique name, and the name must match the name you enter or call in the Parameters page of the DataSet dialog.
  2. Set the data type, the text used to prompt the user, whether to allow null, blank, multiple values or multiline text, and whether to hide the user interface. For parameters with Date or DateTime data types, you have the choice to select the display format.
  3. Populate Available Values with a list of values from which users can choose, or set a default under Default Values.

The parameter settings are explained below.

Click on a section name below for more details on the settings it contains.

Note: Under Available Values, the Value is what is passed to the query parameter, and the Label is what is shown to the user. For example, if the Value is an ID, you might want to supply a more user-friendly Label showing the name hat corresponds to the ID.

To add or edit a parameter

In the Data tab of the property inspector, expand the Parameters section and click Add to create a parameter, or click an existing parameter to edit it.

Parameter editor in the Data tab