|
1 | 1 | --- |
2 | | -title: Creating Parameters |
| 2 | +title: Create a Dashboard Parameter |
3 | 3 | author: Natalia Kazakova |
4 | 4 | legacyId: 16522 |
5 | 5 | --- |
6 | | -# Creating Parameters |
7 | | -This topic explains how to create a new dashboard parameter and specify its settings. |
8 | | -* [Creating Parameters in the Dashboard Designer](#creating-parameters-in-the-dashboard-designer) |
9 | | -* [Look-Up Editor Settings](#look-up-editor-settings) |
10 | | - |
11 | | -## <a name="creating-parameters-in-the-dashboard-designer"/>Creating Parameters in the Dashboard Designer |
12 | | -To create dashboard parameters in the Dashboard Designer, do the following: |
13 | | -1. Click the **Parameters** button on the Ribbon's **Data Source** tab. |
| 6 | +# Create a Dashboard Parameter in the WinForms Designer |
| 7 | + |
| 8 | +This topic shows how to add a new dashboard parameter and specify its settings in the Dashboard Designer. |
| 9 | + |
| 10 | +## Create a Parameter in the UI |
| 11 | + |
| 12 | +To create dashboard parameters in the Dashboard Designer, follow the steps below. |
| 13 | + |
| 14 | +1. Click the **Parameters** button from the **Dashboard** page group on the Ribbon's **Home** page. |
14 | 15 |
|
15 | | -  |
16 | | -2. In the invoked dialog, click the **Add** button to add a new parameter. |
| 16 | +  |
| 17 | + |
| 18 | +2. In the invoked dialog, click the **Add** button to create a dashboard parameter. |
17 | 19 |
|
18 | | -  |
19 | | -3. Specify the following settings. |
20 | | - * **Visible** - Specifies whether or not the parameter editor is visible in the [Dashboard Parameters](requesting-parameter-values.md) dialog. |
21 | | - * **Allow Null** - Specifies whether or a not null value can be passed as a parameter value. |
22 | | - * **Allow Multiselect** - Specifies whether or not multi-selection is enabled for the current parameter. The following limitations are applied to parameters with multi-selection enabled. |
23 | | - * Use the **is any of** or **is none of** operators to pass a multi-select parameter to a [filter](../../data-shaping/filtering.md) criteria or to the [Expression](../../appearance-customization/conditional-formatting/expression.md) format condition. |
24 | | - * Use the **In** or **Not In** operators to pass a multi-select parameter to a [calculated field](../../work-with-data/creating-calculated-fields.md) expression. |
25 | | - * Stored procedures used in the [SQL](../../work-with-data/stored-procedures.md) data source do not support multi-select parameters. |
26 | | - * **Name** - Specifies the parameter name. When creating and modifying parameter names, follow the rules below. |
27 | | - * A name can contain letters, numbers and underscores. |
28 | | - * A name cannot contain spaces. |
29 | | - * A name cannot be an empty string. |
30 | | - * The dashboard cannot contain parameters with the same name. |
31 | | - * Names are case-sensitive. For example, you can create the names _Parameter_ and _PARAMETER_ . |
32 | | - * **Description** - Specifies the parameter's description. The parameter's description is the value displayed in the **Parameter Name** column of the [Dashboard Parameters](requesting-parameter-values.md) dialog. |
33 | | - * **Look-Up Settings** - Specifies the parameter's [look-up editor settings](#look-up-editor-settings). |
34 | | - * **Select All Values** - Specifies whether or not all parameter values should be selected in the initial state of the Dashboard Viewer. |
35 | | - |
36 | | - Note that this option is in effect when **Allow Multiselect** is set to **true**. |
37 | | - * **Type** - Specifies the parameter type. |
38 | | - * **Value** - Specifies the default parameter’s value. Note that when **Allow Multiselect** is set to **true**, the **Value** option allows you to select multiple parameter values. |
| 20 | +  |
| 21 | + |
| 22 | +3. Specify the parameter's settings and click **OK** to save the created parameter. |
| 23 | + |
| 24 | +## Parameter Settings |
| 25 | + |
| 26 | +### Name |
| 27 | + |
| 28 | +Specifies the parameter name. |
| 29 | + |
| 30 | +When you create and modify parameter names, follow the rules below: |
| 31 | + |
| 32 | +* A name can contain letters, numbers, and underscores. |
| 33 | +* A name cannot contain spaces. |
| 34 | +* A name cannot be an empty string. |
| 35 | +* The dashboard cannot contain parameters with the same name. |
| 36 | +* Names are case-sensitive. For example, you can create the names _Parameter_ and _PARAMETER_ . |
| 37 | + |
| 38 | +### Description |
| 39 | + |
| 40 | +Specifies the parameter description displayed in the **Parameter** column of the [Dashboard Parameters](requesting-parameter-values.md) dialog. |
| 41 | + |
| 42 | + |
39 | 43 |
|
40 | | - Then, click **OK** to add the created parameters to the dashboard. |
| 44 | +### Visible |
| 45 | + |
| 46 | +Specifies whether the parameter is visible in the [Dashboard Parameters](requesting-parameter-values.md) dialog. |
41 | 47 |
|
42 | | -## <a name="look-up-editor-settings"/>Look-Up Editor Settings |
43 | | -There are three types of look-up editor settings that can be specified for a parameter. Select the required type from the **LookUpSettings** drop-down list. |
| 48 | +### Allow Null |
44 | 49 |
|
45 | | - |
46 | | -* **No Look-Up** - set the **Value** to use a static value as a parameter. |
| 50 | +Specifies whether a null value can be passed as a parameter value. |
47 | 51 |
|
48 | | -  |
49 | | -* **Static List** - click the ellipsis button to add static values for the current dashboard parameter. |
| 52 | +### Allow Multiselect |
| 53 | + |
| 54 | +Specifies whether multi-selection is enabled for the current parameter. |
| 55 | + |
| 56 | +The following limitations apply to parameters with multi-selection enabled: |
| 57 | + |
| 58 | +* Use the **Is any of** or **Is none of** operators to pass a multi-select parameter to a filter criteria or to the Expression format condition. |
| 59 | +* Use the **In** or **Not In** operators to pass a multi-select parameter to a calculated field expression. |
| 60 | + |
| 61 | +### Select All Values |
| 62 | + |
| 63 | +Specifies whether all parameter values should be selected in the initial state of the dashboard. |
50 | 64 |
|
51 | | -  |
| 65 | +Note that this option is in effect when **Allow Multiselect** is enabled. |
| 66 | + |
| 67 | +### Type |
| 68 | + |
| 69 | +Specifies the parameter type. |
| 70 | + |
| 71 | +The following types are available: |
| 72 | +* String |
| 73 | +* Date |
| 74 | +* Number (16-bit integer) |
| 75 | +* Number (32-bit integer) |
| 76 | +* Number (64-bit integer) |
| 77 | +* Number (floating point) |
| 78 | +* Number (double-precision floating point) |
| 79 | +* Number (decimal) |
| 80 | +* Boolean |
| 81 | +* GUID (Globally Unique Identifier) |
| 82 | + |
| 83 | +### Value |
| 84 | + |
| 85 | +Specifies the default parameter value. |
| 86 | + |
| 87 | +Note that when the **Allow Multiselect** option is enabled, the **Value** option allows you to select multiple parameter values. |
| 88 | + |
| 89 | +### Look-Up Settings |
| 90 | + |
| 91 | +Specifies the parameter's look-up settings. |
| 92 | + |
52 | 93 |
|
53 | | - In this case, the **Value** specifies the default parameter's value. |
54 | | -* **Dynamic List** - allows you to use a list of values from the existing data source as a parameter. You need to select the required **Data Source** from the list of available data sources and data members for the dashboard parameter's display name and value, respectively. |
| 94 | +Select the option from the **Look-Up Settings** drop-down list. |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +The following **Look-Up Settings** are available in the WinForms Dashboard: |
| 99 | + |
| 100 | +#### No Look-Up |
| 101 | + |
| 102 | +An end user can specify the parameter value in the [Dashboard Parameters](requesting-parameter-values.md) dialog. |
| 103 | + |
| 104 | +You can set the default value for the parameter in the parameter setting: |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | +#### Static List |
| 109 | + |
| 110 | +An end user selects a parameter value from a static list. |
| 111 | + |
| 112 | +To add predefined parameter values, click the ellipsis button in the parameter settings: |
55 | 113 |
|
56 | | -  |
57 | | - 1. First, select the required **Data Source** from the list of available data sources. For the [SQL](../../provide-data/connecting-to-sql-databases.md) data source, select the required **Data Member** that specifies the query from the selected **Data Source**. |
58 | | - 2. Then, specify data members for the dashboard parameter's value and display name using **Value Member** and **Display Member**, respectively. |
59 | | - 3. If necessary, specify the data member used to sort parameter values using the **Sort By** option. **Sort Order** specifies the required sort order. |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +#### Dynamic List |
| 118 | + |
| 119 | +An end user selects a parameter value defined in a data source. |
60 | 120 |
|
61 | | - > [!NOTE] |
62 | | - > To learn how to create a data source for a dashboard parameter, see [Provide Data](../../provide-data.md). |
63 | | - > |
64 | | - > Note that you cannot specify an [OLAP](../../provide-data/connecting-to-olap-cubes.md) data source as the data source for the dashboard parameter in the Dashboard Designer. |
| 121 | + |
| 122 | + |
| 123 | +>[!TIP] |
| 124 | +>You can also create cascading parameters in the Dashboard Designer. For more information, refer to the following topic: [Cascading Parameters](create-cascading-parameters.md). |
| 125 | +
|
| 126 | +To provide access to data source values, specify the following options: |
| 127 | + |
| 128 | +|UI Settings|Description| |
| 129 | +|--------|-----------|---| |
| 130 | +|**Data Source**| Specifies the data source for the dashboard parameter.| |
| 131 | +|**Data Member**| Specifies the name of the data member with the parameter values for SQL and Entity Framework data sources.| |
| 132 | +|**Value Member**|Specifies the name of the data field for the parameter values.| |
| 133 | +|**Display Member** (optional)| Specifies the name of the data field displayed in the **Dashboard Parameters** dialog as a value description.| |
| 134 | +|**Sort By** (optional)|Specifies the data member used to sort parameter values.| |
| 135 | +|**Sort Order** (optional)|Specifies the sort order.| |
| 136 | + |
| 137 | +> [!NOTE] |
| 138 | +> You cannot use an OLAP data source as the data source for a dashboard parameter. |
| 139 | +
|
0 commit comments