Skip to content

Commit e90fc65

Browse files
Mz add int elements (#246)
* embed Print Review and Filter/expression editors * update
1 parent 91998dd commit e90fc65

File tree

247 files changed

+3067
-649
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+3067
-649
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Expression Editor
3+
author: Alexey Zolotarev
4+
legacyId: 7430
5+
---
6+
# Expression Editor
7+
The Expression Editor allows you to edit various Boolean or regular expressions in controls:
8+
9+
![UI_Expression_Editor](../../images/img11049.png)
10+
11+
In this editor, you can type an expression manually, or select functions, operators and operands using the editor's controls.
12+
13+
An expression is a string that, when parsed and processed, evaluates some value. Expressions consist of column/field names, constants, operators and functions. Column/field names must be wrapped with brackets. The following are examples of regular expressions:
14+
15+
_"[Quantity] * [UnitPrice] * (1 - [BonusAmount])"_
16+
17+
Boolean expressions:
18+
19+
_"[Country] == 'USA'"_
20+
21+
For more information about syntax you can use in expressions, see [Expression Operators, Functions and Constants](expression-editor/expression-operators-functions-and-constants.md)
22+
23+
The Expression Editor supports numerous standard functions, allowing you to easily perform different string, date-time, logical and math operations over data. You can access the available functions by selecting the **Functions** category.

eud-for-bi-dashboards/dashboard-for-desktop/dashboard-designer/ui-elements/expression-editor/expression-operators-functions-and-constants.md

Lines changed: 322 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Filter Editor
3+
author: Alexey Zolotarev
4+
legacyId: 4842
5+
---
6+
# Filter Editor
7+
This section describes the capabilities provided by the Filter Editor, which allows users to visually build filters:
8+
9+
![EndUser_Win_FilterEditor](../../images/img9054.png)
10+
11+
 
12+
13+
Topics in this section:
14+
* [Filter Data via the Filter Editor](filter-editor/filter-data-via-the-filter-editor.md)
15+
* [Examples of Using the Filter Editor](filter-editor/examples-of-using-the-filter-editor.md)
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
title: Examples of Using the Filter Editor
3+
author: Alexey Zolotarev
4+
legacyId: 4661
5+
---
6+
# Examples of Using the Filter Editor
7+
The [Filter Editor](filter-data-via-the-filter-editor.md) allows you to filter data (display those records that meet specific requirements), by visually constructing filter criteria in a straightforward graphical form.
8+
9+
The following sections demonstrate how to construct filter criteria using the Filter Editor.
10+
11+
## How to Construct a Simple Filter Condition
12+
Basically, filter conditions specify what data to select from a data source and display in a data-bound control. A typical simple filter condition consists of three parts: the column/field name, operator and a value(s). For instance, '[Discount] >= 0.05' is a simple filter condition, where '[Discount]' is a field name, '>=' is an operator and '0.05' is a value. This condition when applied to a data-aware control will display records that have values in the Discount column greater than or equal to 0.05. Here is how to create this condition via the Filter Editor (it's assumed that the underlying data source contains the Discount column, otherwise, this column will not be accessible in the Filter Editor's column list):
13+
1. **Invoke the Filter Editor.**
14+
15+
To invoke the Filter Editor in a grid control, right-click any grid column's header and select the Filter Editor option.
16+
17+
![FilterEditor_SimpleCondt_Invoke](../../../images/img7312.png)
18+
19+
To learn how to invoke the Filter Editor for other controls, see corresponding sections in this documentation.
20+
21+
2. **Select a column**.
22+
23+
To filter against the Discount column, click the column name field. This will display the list of available columns. Select the Discount column in this list:
24+
25+
![FilterEditor_SimpleCondt_NewConditionForProductName](../../../images/img7314.png)
26+
3. **Select a comparison operator**.
27+
28+
Click the operator field to choose the required operator.
29+
30+
![FilterEditor_SimpleCondt_SwitchOperators](../../../images/img7316.png)
31+
32+
The comparison operator list displays only those operators that are supported by the current column's data type. For instance, the Discount column is of the numeric type, and the operator list doesn't display the 'Begins with' operator and other operators that are related to strings.
33+
4. **Enter a value**.
34+
35+
Now, click the value box and enter a comparison value ('0.05'):
36+
37+
![FilterEditor_SimpleCondt_EnterValue005](../../../images/img7317.png)
38+
5. **Save changes**.
39+
40+
Click OK or Apply, to filter data using the created filter condition. The grid will show the filter panel displaying the current filter criteria:
41+
42+
![FilterEditor_SimpleCondt_Final](../../../images/img7318.png)
43+
44+
The filter panel will contain the 'Edit Filter' button, which also allows you to invoke the Filter Editor.
45+
46+
## How to Construct Filter Criteria with Multiple Conditions Joined by One Logical Operator
47+
Filter criteria typically consist of two or more simple filter conditions combined by logical operators (AND, OR, NOT AND, NOT OR). The following example shows how to construct filter criteria in the Filter Editor that consist of multiple conditions combined by one logical operator. The "[ProductName] = 'Tofu' AND [Discount] >= 0.1 AND [Quantity] > 99" filter expression contains three simple filter conditions combined by the AND operator. To construct it, do the following:
48+
1. Invoke the Filter Editor. When the Filter Editor is invoked for a grid control, the Filter Editor may display an unfinished new filter condition:
49+
50+
![FilterEditor_3Cond_Invoke](../../../images/img7328.png)
51+
2. Set the condition's operator to Equals and operand value to 'Tofu' (as described in the previous section):
52+
53+
![FilterEditor_3Cond_FirstCondt](../../../images/img7329.png)
54+
3. To add one more condition, press the ![FilterEditor_EU_AddButton](../../../images/img7350.png) button next to the group's AND operator. This will create a new condition under the current one:
55+
56+
![FilterEditor_3Cond_AddSecondCondt](../../../images/img7330.png)
57+
58+
59+
60+
61+
4. For the second condition, set the column to 'Unit Price', operator to '>=' and operand value to '100':
62+
63+
![FilterEditor_3Cond_SecondCondt](../../../images/img7332.png)
64+
5. To add a third condition to the same group, click the ![FilterEditor_EU_AddButton](../../../images/img7350.png) button again. Set the condition's column to 'Units in Stock', operator to '>' and operand value to '50'. Below is the result:
65+
66+
![FilterEditor_3Cond_Final](../../../images/img7327.png)
67+
6. Click OK or Apply, to apply the created filter criteria.
68+
69+
## How to Construct Filter Criteria Involving Different Logical Operators
70+
Some filter criteria contain multiple logical (Boolean) operators combining simple filter conditions. For instance, you want to see items whose price is under 10, and at the same time, the available quantity is also less than 10. At the same time, you may also want to see those items whose price is over 10, while the available quantity is also greater than 10.
71+
72+
The resulting condition will look like this:
73+
74+
``(Price is less than 10 AND Quantity is less than 10) OR (Price is greater than 10 AND Quantity is greater than 10)``
75+
76+
This is how you can do this:
77+
1. Invoke the Filter Editor.
78+
2. Clear existing filter conditions (if any) by clicking the ![FilterEditor_EU_DeleteButton](../../../images/img7351.png) button:
79+
80+
![FilterEditor_4Cond_Clear](../../../images/img7394.png)
81+
3. Change the root logical operator to OR. To do this, click the current AND operator and select OR:
82+
83+
![FilterEditor_4Cond_SelectOR](../../../images/img7396.png)
84+
4. Add a new filter condition group by clicking the OR operator and selecting Add Group.
85+
86+
![FilterEditor_4Cond_Add1CondtGroup](../../../images/img7398.png)
87+
5. For the created condition, set the column to 'UnitPrice', operator to '<' and operand value to '10':
88+
89+
![FilterEditor_4Cond_1CondtGroup_1Condt](../../../images/img7399.png)
90+
6. Click the ![FilterEditor_EU_AddButton](../../../images/img7350.png) button to add a new condition to the current group:
91+
92+
![FilterEditor_4Cond_1CondtGroup_AddNewCondt](../../../images/img7403.png)
93+
7. For the new condition, set the column to 'Quantity', operator to '<' and operand value to '10':
94+
95+
![FilterEditor_4Cond_1CondtGroup_2Condt](../../../images/img7405.png)
96+
8. Add a new filter condition group. To do this, click the root OR operator and select Add Group.
97+
98+
![FilterEditor_4Cond_Add2CondtGroup](../../../images/img7406.png)
99+
9. For the condition within the created group, set the column to 'UnitPrice', operator to '>' and operand value to '10':
100+
101+
![FilterEditor_4Cond_2CondtGroup_1Condt](../../../images/img7407.png)
102+
10. Click the ![FilterEditor_EU_AddButton](../../../images/img7350.png) button to add a new condition to the new group. For the new condition, set the column to 'Quantity', operator to '>' and operand value to '10':
103+
104+
![FilterEditor_4Cond_2CondtGroup_2Condt](../../../images/img7410.png)
105+
12. Click OK or Apply, to apply the created filter criteria.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: Filter Data via the Filter Editor
3+
author: Alexey Zolotarev
4+
legacyId: 4659
5+
---
6+
# Filter Data via the Filter Editor
7+
## Filter Editor
8+
The **Filter Editor** is used to edit filter criteria. To create and customize filter criteria, use the ![FilterEditor_EU_AddButton](../../../images/img7350.png) and ![FilterEditor_EU_DeleteButton](../../../images/img7351.png) buttons embedded into the control and context menus supported by the editor's elements:
9+
10+
![FilterEditor_Illustration](../../../images/img5357.png)
11+
12+
**Remarks**
13+
14+
A filter condition **group** is a set of conditions combined by the same logical operator. The following filter expression contains two groups combined by the logical OR operator: "([Product] = 'Chang' And [Quantity] > 20) Or ([Product] In ('Tofu', 'Konbu') And [Quantity] < 100)". In the Filter Editor it's represented as follows:
15+
16+
![CD_FilterEditor_2Groups](../../../images/img7326.png)
17+
18+
For step-by-step examples of creating filter criteria, see [Examples of Using the Filter Editor](examples-of-using-the-filter-editor.md).
19+
20+
## Add Conditions
21+
To add a condition to a logical group, do one of the following:
22+
* Focus any condition within the group or the group's logical operator and then press INSERT or ADD on the keyboard.
23+
* Click the ![FilterEditor_EU_AddButton](../../../images/img7350.png) button for the group.
24+
* Click the group's logical operator and select **Add Condition**.
25+
26+
To add a condition or a group of conditions that have been copied to the clipboard, press CTRL+V or SHIFT+INSERT. The new condition will be added to the focused group.
27+
28+
## Delete Conditions
29+
To delete a condition, do one of the following:
30+
* Focus the condition and press DELETE or SUBTRACT.
31+
* Click the ![FilterEditor_EU_DeleteButton](../../../images/img7351.png) button.
32+
33+
To delete a group of conditions, do one of the following:
34+
* Focus the group's logical operator and press DELETE or SUBTRACT
35+
* Click the group's logical operator and select **Remove Group**.
36+
37+
To delete all conditions, do one of the following:
38+
* Focus the topmost logical operator and press DELETE or SUBTRACT.
39+
* Click the topmost logical operator and select **Clear All**.
40+
41+
To cut a condition/group of conditions to the clipboard, focus this condition or the group's logical operator and press CTRL+X or SHIFT+DELETE.
42+
43+
## Clipboard Operations
44+
To copy a condition or a group of conditions to the clipboard, focus this condition or the group's logical operator and press CTRL+C or CTRL+INSERT.
45+
46+
To cut a condition or a group of conditions to the clipboard, focus this condition or the group's logical operator and press CTRL+X or SHIFT+DELETE.
47+
48+
To paste a condition or a group of conditions from the clipboard to the focused group, press CTRL+V or SHIFT+INSERT.
49+
50+
## Change a Column in a Filter Condition
51+
To change a condition's column, invoke the column list by doing one of the following:
52+
* Click the current column.
53+
* Focus the current column via the keyboard and press SPACE or ALT+DOWN ARROW.
54+
55+
Then, choose the required column from the list that will be invoked
56+
57+
## Change an Operator in a Filter Condition
58+
To change a condition's operator, invoke the operator list by doing one of the following:
59+
* Click the condition's current operator.
60+
* Focus the current operator via the keyboard and press SPACE or ALT+DOWN ARROW
61+
62+
Then, choose the required operator from the list that will be invoked
63+
64+
## Edit a Condition's Value
65+
To edit a condition's value, click the operand value and type text.
66+
67+
To activate the operand value's edit box without changing the value, click the value or focus the operand value via the keyboard and press F2, SPACE, ENTER or ALT+DOWN
68+
69+
To close the active edit box, press ENTER.
70+
71+
To discard changes to the value and close the active edit box, press ESC.
72+
73+
## Navigation
74+
To focus a specific filter condition or a group's operator within the Filter Editor, do one of the following:
75+
* Click the target element.
76+
* Use arrow keys to move focus via the keyboard.
8.79 KB
Loading
30.2 KB
Loading
64.9 KB
Loading
15.4 KB
Loading
19.5 KB
Loading

0 commit comments

Comments
 (0)