Skip to content

Commit f9bcd10

Browse files
rename conditionally-change-a-bands-visibility.md
1 parent 5118e3e commit f9bcd10

File tree

8 files changed

+1609
-1609
lines changed

8 files changed

+1609
-1609
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
---
2-
title: Specify Conditions for Report Elements
3-
author: Sergey Andreev
4-
---
5-
# Specify Conditions for Report Elements
6-
7-
Topics in this section demonstrate how to conditionally change report data and elements.
8-
9-
* [Conditionally Change a Control's Appearance](specify-conditions-for-report-elements/conditionally-change-a-control-appearance.md)
10-
* [Conditionally Change a Label's Text](specify-conditions-for-report-elements/conditionally-change-a-label-text.md)
11-
* [Conditionally Change a Band's Visibility](specify-conditions-for-report-elements/conditionally-change-a-bands-visibility-expression-bindings.md)
12-
* [Conditionally Filter Report Data](specify-conditions-for-report-elements/conditionally-filter-report-data.md)
13-
* [Conditionally Suppress Controls](specify-conditions-for-report-elements/conditionally-supress-controls.md)
14-
* [Limit the Number of Records per Page](specify-conditions-for-report-elements/limit-the-number-of-records-per-page.md)
15-
* [Display Average Values in Charts](specify-conditions-for-report-elements/display-average-values-in-charts.md)
1+
---
2+
title: Specify Conditions for Report Elements
3+
author: Sergey Andreev
4+
---
5+
# Specify Conditions for Report Elements
6+
7+
Topics in this section demonstrate how to conditionally change report data and elements.
8+
9+
* [Conditionally Change a Control's Appearance](specify-conditions-for-report-elements/conditionally-change-a-control-appearance.md)
10+
* [Conditionally Change a Label's Text](specify-conditions-for-report-elements/conditionally-change-a-label-text.md)
11+
* [Conditionally Change a Band's Visibility](specify-conditions-for-report-elements/conditionally-change-a-bands-visibility.md)
12+
* [Conditionally Filter Report Data](specify-conditions-for-report-elements/conditionally-filter-report-data.md)
13+
* [Conditionally Suppress Controls](specify-conditions-for-report-elements/conditionally-supress-controls.md)
14+
* [Limit the Number of Records per Page](specify-conditions-for-report-elements/limit-the-number-of-records-per-page.md)
15+
* [Display Average Values in Charts](specify-conditions-for-report-elements/display-average-values-in-charts.md)

eud-for-devexpress-reports/reporting-for-desktop/report-designer/report-designer-for-winforms/shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-bands-visibility-expression-bindings.md renamed to eud-for-devexpress-reports/reporting-for-desktop/report-designer/report-designer-for-winforms/shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-bands-visibility.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
---
2-
title: Conditionally Change a Band's Visibility
3-
owner: Vera Gorbyliova
4-
seealso: []
5-
---
6-
# Conditionally Change a Band's Visibility
7-
8-
This topic describes how to change the report band's visibility.
9-
10-
Set a band's **Visible** property to an expression to conditionally change the band's visibility based on a field's value or a parameter.
11-
12-
The report created in this tutorial contains two Detail **sub-bands** with different report controls. These sub-bands are used to display discontinued and current products.
13-
14-
![1](../../../../images/conditionally-change-a-bands-visibility.png)
15-
16-
The steps below demonstrate how to change a band's visibility based on a field's value.
17-
18-
1. Select a band and switch to the **Properties** panel. Choose **Expressions** ![](../../../../images/conditionally-change-a-bands-visibility-expression-button.png) and click the **Visible** property's ellipsis button.
19-
20-
![](../../../../images/conditionally-change-a-bands-visibility-visible-button.png)
21-
22-
2. In the invoked **Expression Editor**, specify the expression.
23-
24-
![](../../../../images/conditionally-change-a-bands-visibility-first-expression.png)
25-
26-
Here, the **[Discontinued] == false** expression is set for the **SubBand1** and the **[Discontinued] == true** expression for the **SubBand2**. These expressions specify the **Visible** property based on the **Discontinued** data field's value.
27-
28-
The **Preview** below displays how changes to band visibility influence the Product List. The **SubBand1** is used to display products that have the **Discontinued** field set to **false**, and the **SubBand2** is used to display discontinued products.
29-
30-
![](../../../../images/conditionally-change-a-bands-visibility-result.png)
31-
1+
---
2+
title: Conditionally Change a Band's Visibility
3+
owner: Vera Gorbyliova
4+
seealso: []
5+
---
6+
# Conditionally Change a Band's Visibility
7+
8+
This topic describes how to change the report band's visibility.
9+
10+
Set a band's **Visible** property to an expression to conditionally change the band's visibility based on a field's value or a parameter.
11+
12+
The report created in this tutorial contains two Detail **sub-bands** with different report controls. These sub-bands are used to display discontinued and current products.
13+
14+
![1](../../../../images/conditionally-change-a-bands-visibility.png)
15+
16+
The steps below demonstrate how to change a band's visibility based on a field's value.
17+
18+
1. Select a band and switch to the **Properties** panel. Choose **Expressions** ![](../../../../images/conditionally-change-a-bands-visibility-expression-button.png) and click the **Visible** property's ellipsis button.
19+
20+
![](../../../../images/conditionally-change-a-bands-visibility-visible-button.png)
21+
22+
2. In the invoked **Expression Editor**, specify the expression.
23+
24+
![](../../../../images/conditionally-change-a-bands-visibility-first-expression.png)
25+
26+
Here, the **[Discontinued] == false** expression is set for the **SubBand1** and the **[Discontinued] == true** expression for the **SubBand2**. These expressions specify the **Visible** property based on the **Discontinued** data field's value.
27+
28+
The **Preview** below displays how changes to band visibility influence the Product List. The **SubBand1** is used to display products that have the **Discontinued** field set to **false**, and the **SubBand2** is used to display discontinued products.
29+
30+
![](../../../../images/conditionally-change-a-bands-visibility-result.png)
31+
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
---
2-
title: Reference Report Parameters
3-
author: Eugene Polevikov
4-
---
5-
6-
# Reference Report Parameters
7-
8-
After you [create a report parameter](create-a-report-parameter.md), you can reference this parameter in the [report's filter string](#reference-in-a-reports-filter-string), [in expressions](#reference-in-expressions), and [in a control's Text property](#reference-in-a-controls-text-property). You can also bind control and data source parameters to report parameters. Refer to the sections below for more details.
9-
10-
## Reference in a Report's Filter String
11-
12-
You can reference a report parameter in the report's filter string. This allows you to conditionally filter the report's data loaded from a data source.
13-
14-
![reference parameter in report filter string](../../../images/reference-parameter-in-report-filter-string.png)
15-
16-
> [!TIP]
17-
> When you use a report's filter string to filter data, all the data is loaded from a data source before the filter is applied. If you use a large dataset, filter data at the data source level. Refer to the following topic for more information: [Filter Data at the Data Source Level](../shape-report-data/filter-data/filter-data-at-the-data-source-level.md).
18-
19-
## Reference in Expressions
20-
21-
You can reference a report parameter in [expressions](../use-expressions.md) of [controls](../use-report-elements/use-basic-report-controls.md) and [calculated fields](../shape-report-data/use-calculated-fields/calculated-fields-overview.md).
22-
23-
![Reference report parameters in expressions](../../../images/report-parameters-reference-in-expression.png)
24-
25-
This allows you to conditionally change the data a control or calculated field displays.
26-
27-
You can use the [Field List](../report-designer-tools/ui-panels/field-list.md) to create an [Label](../use-report-elements/use-basic-report-controls/label.md) control that displays only a parameter value. To do this, drag the parameter from the **Field List** and drop it onto the report's band.
28-
29-
![Drag and drop a report parameter](../../../images/reference-parameter-drag-and-drop.png)
30-
31-
You can also use parameters in expressions to specify the visibility of a report's bands or conditionally change a control's appearance.
32-
33-
![Reference parameters in the Expression Editor](../../../images/parameters-expression-editor.png)
34-
35-
Refer to the following topics for more information:
36-
37-
* [Conditionally Change a Band's Visibility](../shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-bands-visibility-expression-bindings.md)
38-
* [Conditionally Change a Control's Appearance](../shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-control-appearance.md)
39-
40-
## Reference in a Control's Text Property
41-
42-
You can use a report parameter in a control's **Text** property.
43-
44-
![Reference a parameter in a control's Text property (Designer)](../../../images/report-parameters-reference-in-text-property.png)
45-
46-
This allows you to create a placeholder (embedded field) that is substituted by a parameter value.
47-
48-
![Reference a parameter in a control's Text property (Preview)](../../../images/report-parameters-reference-in-text-preview.png)
49-
50-
Refer to the following topic for information on embedded fields: [Use Embedded Fields (Mail Merge)](../use-report-elements/use-embedded-fields-mail-merge.md).
51-
52-
## Bind Control Parameters to Report Parameters
53-
54-
You can create parameters for the [CrossTab](../use-report-elements/use-cross-tabs.md) and [Chart](../use-report-elements/use-charts-and-pivot-grids/use-charts-in-reports.md) controls and bind these parameters to report parameters. This allows you to conditionally filter data at the control level. Refer to the following topic for details on how to filter data for the **Сhart** control: [Use Charts to Visualize Grouped Data](../use-report-elements/use-charts-and-pivot-grids/use-charts-to-visualize-grouped-data.md).
55-
56-
You can also specify a parameter for the [Subreport](../use-report-elements/use-basic-report-controls/subreport.md) control and bind this parameter to report parameters. This allows you to pass parameter values from the main report to the subreport and conditionally change the subreport's data and appearance.
57-
58-
## Bind Data Source Parameters to Report Parameters
59-
60-
You can create parameters for data sources and bind them to report parameters. The table below contains information about which tasks this allows you to solve, a data source for which the task can be solved, and links to documentation sections you can reference for details.
61-
62-
| Task | Data Source | Documentation |
63-
| --- | --- | --- |
64-
| **Filter data at the data source level** | SQL Data Source <br> Entity Framework Data Source <br> MongoDB Data Source | [Bind a Report to a Database](../bind-to-data/bind-a-report-to-a-database.md) <br> [Bind a Report to an Entity Framework Data Source](../bind-to-data/bind-a-report-to-an-entity-framework-data-source.md) <br> [Bind a Report to a MongoDB Instance](../bind-to-data/bind-a-report-to-a-mongodb-instance.md) |
65-
| **Pass report parameters to a stored procedure** | SQL Data Source <br> Entity Framework Data Source | [Specify Query Parameters](../bind-to-data/specify-query-parameters.md) <br> [Bind a Report to an Entity Framework Data Source](../bind-to-data/bind-a-report-to-an-entity-framework-data-source.md) |
66-
| **Pass report parameters to a method that loads data** | Object Data Source | [Bind a Report to an Object Data Source](../bind-to-data/bind-a-report-to-an-object-data-source.md) |
67-
1+
---
2+
title: Reference Report Parameters
3+
author: Eugene Polevikov
4+
---
5+
6+
# Reference Report Parameters
7+
8+
After you [create a report parameter](create-a-report-parameter.md), you can reference this parameter in the [report's filter string](#reference-in-a-reports-filter-string), [in expressions](#reference-in-expressions), and [in a control's Text property](#reference-in-a-controls-text-property). You can also bind control and data source parameters to report parameters. Refer to the sections below for more details.
9+
10+
## Reference in a Report's Filter String
11+
12+
You can reference a report parameter in the report's filter string. This allows you to conditionally filter the report's data loaded from a data source.
13+
14+
![reference parameter in report filter string](../../../images/reference-parameter-in-report-filter-string.png)
15+
16+
> [!TIP]
17+
> When you use a report's filter string to filter data, all the data is loaded from a data source before the filter is applied. If you use a large dataset, filter data at the data source level. Refer to the following topic for more information: [Filter Data at the Data Source Level](../shape-report-data/filter-data/filter-data-at-the-data-source-level.md).
18+
19+
## Reference in Expressions
20+
21+
You can reference a report parameter in [expressions](../use-expressions.md) of [controls](../use-report-elements/use-basic-report-controls.md) and [calculated fields](../shape-report-data/use-calculated-fields/calculated-fields-overview.md).
22+
23+
![Reference report parameters in expressions](../../../images/report-parameters-reference-in-expression.png)
24+
25+
This allows you to conditionally change the data a control or calculated field displays.
26+
27+
You can use the [Field List](../report-designer-tools/ui-panels/field-list.md) to create an [Label](../use-report-elements/use-basic-report-controls/label.md) control that displays only a parameter value. To do this, drag the parameter from the **Field List** and drop it onto the report's band.
28+
29+
![Drag and drop a report parameter](../../../images/reference-parameter-drag-and-drop.png)
30+
31+
You can also use parameters in expressions to specify the visibility of a report's bands or conditionally change a control's appearance.
32+
33+
![Reference parameters in the Expression Editor](../../../images/parameters-expression-editor.png)
34+
35+
Refer to the following topics for more information:
36+
37+
* [Conditionally Change a Band's Visibility](../shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-bands-visibility.md)
38+
* [Conditionally Change a Control's Appearance](../shape-report-data/specify-conditions-for-report-elements/conditionally-change-a-control-appearance.md)
39+
40+
## Reference in a Control's Text Property
41+
42+
You can use a report parameter in a control's **Text** property.
43+
44+
![Reference a parameter in a control's Text property (Designer)](../../../images/report-parameters-reference-in-text-property.png)
45+
46+
This allows you to create a placeholder (embedded field) that is substituted by a parameter value.
47+
48+
![Reference a parameter in a control's Text property (Preview)](../../../images/report-parameters-reference-in-text-preview.png)
49+
50+
Refer to the following topic for information on embedded fields: [Use Embedded Fields (Mail Merge)](../use-report-elements/use-embedded-fields-mail-merge.md).
51+
52+
## Bind Control Parameters to Report Parameters
53+
54+
You can create parameters for the [CrossTab](../use-report-elements/use-cross-tabs.md) and [Chart](../use-report-elements/use-charts-and-pivot-grids/use-charts-in-reports.md) controls and bind these parameters to report parameters. This allows you to conditionally filter data at the control level. Refer to the following topic for details on how to filter data for the **Сhart** control: [Use Charts to Visualize Grouped Data](../use-report-elements/use-charts-and-pivot-grids/use-charts-to-visualize-grouped-data.md).
55+
56+
You can also specify a parameter for the [Subreport](../use-report-elements/use-basic-report-controls/subreport.md) control and bind this parameter to report parameters. This allows you to pass parameter values from the main report to the subreport and conditionally change the subreport's data and appearance.
57+
58+
## Bind Data Source Parameters to Report Parameters
59+
60+
You can create parameters for data sources and bind them to report parameters. The table below contains information about which tasks this allows you to solve, a data source for which the task can be solved, and links to documentation sections you can reference for details.
61+
62+
| Task | Data Source | Documentation |
63+
| --- | --- | --- |
64+
| **Filter data at the data source level** | SQL Data Source <br> Entity Framework Data Source <br> MongoDB Data Source | [Bind a Report to a Database](../bind-to-data/bind-a-report-to-a-database.md) <br> [Bind a Report to an Entity Framework Data Source](../bind-to-data/bind-a-report-to-an-entity-framework-data-source.md) <br> [Bind a Report to a MongoDB Instance](../bind-to-data/bind-a-report-to-a-mongodb-instance.md) |
65+
| **Pass report parameters to a stored procedure** | SQL Data Source <br> Entity Framework Data Source | [Specify Query Parameters](../bind-to-data/specify-query-parameters.md) <br> [Bind a Report to an Entity Framework Data Source](../bind-to-data/bind-a-report-to-an-entity-framework-data-source.md) |
66+
| **Pass report parameters to a method that loads data** | Object Data Source | [Bind a Report to an Object Data Source](../bind-to-data/bind-a-report-to-an-object-data-source.md) |
67+
6868
When you bind a report to the JSON Data Source, you can specify a URI from which a JSON file should be loaded. You can bind path parameters, query parameters, and header parameters to report parameters to conditionally configure HTTP requests to the web service endpoint. Refer to the following topic for details: [Bind a Report to JSON Data](../bind-to-data/bind-a-report-to-json-data.md).

0 commit comments

Comments
 (0)