Passing Parameter Values

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Dashboard Designer > Using Dashboard Parameters >

Passing Parameter Values

Dashboard for Desktop > Dashboard Designer > Using Dashboard Parameters > Passing Parameter Values

In this topic, you will learn how to pass parameter values to a dashboard.

ExpandedCollapsed SQL Queries

The Dashboard Designer provides the capability to use a dashboard parameter as an SQL query/stored procedure parameter. To pass a dashboard parameter to an SQL query/stored procedure in the Data Source wizard or Query Editor, do the following.

Create a query parameter or select the required stored procedure parameter.

Enable the Expression checkbox for this parameter and select the required dashboard parameter in the Value column.

img121219

If necessary, you can select Expression editor... and specify an expression to bind a query parameter to a dashboard parameter using custom logic.

ExpandedCollapsed Filtering

You can filter the specified query of the SQL Data Source or apply filtering to a specific dashboard item according to the current parameter value(s) using the Filter Editor.

In the Filter Editor, you can compare a field value with the following objects.

A static value (represented by the img21820 icon). Click this button to switch to the next item mode ("another field value"), to compare the field value with another field value.

Another field value (represented by the img21824 icon). Click this button to switch to the next item mode (“parameter value”), to compare the field value with a parameter value.

A parameter value (represented by the img21825 icon). Click this button to switch back to the initial mode ("static value"), to compare the field value with a static value.

Thus, to compare a field value with a parameter value, click the img21820 button, then click the img21824 button.

img21729

ExpandedCollapsed Conditional Formatting

You can apply conditional formatting to a specific dashboard item according to the current parameter value when creating the Expression format condition. In the Expression dialog, you can compare a field value with parameter values in the same manner as in the Filter Editor dialog.

ExpandedCollapsed Calculated Fields

You can use parameters when constructing expressions for calculated fields. A parameter is inserted into the expression using the “Parameters.” prefix.

To see a list of available parameters, click Parameters in the Expression Editor dialog.

img21730

ExpandedCollapsed See Also

Creating Parameters

Requesting Parameter Values

Creating Calculated Fields

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.