Skip to content

Commit 0330375

Browse files
author
epolevikov
committed
Pull changes from upstream
2 parents 5593acb + 92eee14 commit 0330375

File tree

232 files changed

+757
-281
lines changed

Some content is hidden

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

232 files changed

+757
-281
lines changed

dashboard-for-desktop/articles/dashboard-designer/provide-data.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ This section contains the following topics.
1919
* [Binding to XPO Data Sources](provide-data/binding-to-XPO-data-sources.md)
2020
* [Connect to EF Data Sources](provide-data/connect-to-ef-data-sources.md)
2121
* [Binding to Federated Data Source](provide-data/binding-to-federated-data-source.md)
22+
* [Binding to MongoDB](provide-data/binding-to-mongodb.md)

dashboard-for-desktop/articles/dashboard-designer/provide-data/binding-to-federated-data-source.md

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,72 +5,77 @@ author: Margarita Zakhodyaeva
55

66
# Binding to Federated Data Source
77

8-
A _federated data source_ combines multiple data sources (except OLAP) in one.
8+
You can create a federated data source if a dashboard contains at least one data source. Create a federated query where you specify how to federate existing data sources.
99

10-
## Overview
10+
You can create federated queries of the following types:
1111

12-
You can create a federated data source if a dashboard contains at least one data source. To do this, create a query where you specify how to federate existing data sources. The federated query can be one of the following types:
12+
- **Join**
1313

14-
### Join
15-
Combines rows from two or more tables based on a column they share. The join type specifies records that have matching values in both tables.
14+
Combines rows from two or more tables based on a clause.
1615

17-
### Union
18-
Combines rows from two or more tables into one data set and removes duplicate rows in merged tables. You can only create a union query for data sources that contain columns with the same name. Data types of such columns should be [implicitly converted](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/casting-and-type-conversions#implicit-conversions).
16+
- **Union and Union All**
1917

20-
### Union All
21-
Operates like **Union**, but duplicates rows from different tables when they contain the same data.
22-
23-
### Transformation
24-
Unfolds complex objects and flattens them in a simple data set. The dashboard does not support data source fields that store collections, so you need to transform the data source into a new flattened data table.
18+
The **Union** query combines rows from two or more tables into one data set and removes duplicate rows in merged tables. The **UnionAll** query does the same, except it doesn't remove duplicated rows. You can create a union query for data sources if data types of their columns are [implicitly converted](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/casting-and-type-conversions#implicit-conversions).
19+
- **Transformation**
2520

21+
If a data source contains a complex column (an object), you can transform its properties to display columns separately in a flattened view.
22+
2623
## Create a Federated Data Source with the Data Source Wizard
2724

28-
To create a federated data source with the Data Source Wizard, perform the following steps:
25+
Follow the steps below to create a federated data source with the Data Source Wizard:
26+
### Create a New Federated Data Source
2927

30-
1. Click the **New Data Source** button in the **Data Source** ribbon tab.
28+
Click the **New Data Source** button in the **Data Source** ribbon tab.
3129

32-
![Choose_new_data_source](../../../images/choose-new-data-source.png)
30+
![Choose_new_data_source](../../../images/choose-new-data-source.png)
3331

34-
2. On the first page of the invoked **Data Source Wizard** dialog, select **Data Federation** and click **Next**.
32+
On the first page of the invoked **Data Source Wizard** dialog, select **Data Federation** and click **Next**.
3533

36-
![Choose_federated_data_source](../../../images/choose-federated-data-source.png)
34+
![Choose_federated_data_source](../../../images/choose-federated-data-source.png)
35+
### Select the Query Type
3736

38-
3. The [Query Builder](../../dashboard-designer/work-with-data/using-the-query-builder.md) dialog displays available data sources.
37+
The [Query Builder](../../dashboard-designer/work-with-data/using-the-query-builder.md) displays the available data sources you can use to create queries.
3938

4039
![Query_Builder_available_sources](../../../images/query-builder-available-sources.png)
4140

42-
4. Select the **Query Type**:
43-
4441
**Join**
42+
43+
Drag the data sources you want to join to the diagram pane, specify the related column to create the relationship between tables, and select the columns you want to include in the query. Use _* (All Columns)_ to get a complete list of columns from a table. Columns included in the query are displayed in the bottom pane where you can configure their settings.
4544

46-
Drag-and-drop the data sources, specify the related column to create the relationship between tables, and select the columns you want to include in the query. Use _* (All Columns)_ to get a complete list of the columns from a table. Columns included in the query are displayed in the bottom pane where you can configure their settings.
47-
48-
![Federated_data_source_settings](../../../images/federated-source-settings.png)
45+
![Data-Federation-Query-Builder](../../../images/data-federation-querybuilder.png)
4946

5047
**Union**
5148

52-
Double-click the data sources you want to combine. Unlike join queries, you cannot select individual columns. Columns included in the query are displayed in the bottom pane where you can specify their aliases.
49+
Double-click the data sources you want to combine. Unlike Join queries, you cannot select individual columns. Columns included in the query are displayed in the bottom pane where you can specify their aliases.
5350

54-
![data-federation-querybuilder-union](../../../images/data-federation-querybuilder-union.png)
51+
![Query-builder-union](../../../images/data-federation-querybuilder-union.png)
5552

5653
**Union All**
5754

5855
Double-click the data sources you want to combine. A **UnionAll** query duplicates rows from different tables even if they contain the same data. Columns included in the query are displayed in the bottom pane where you can specify their aliases.
5956

60-
![data-federation-querybuilder-union-all](../../../images/data-federation-querybuilder-union-all.png)
57+
![Query-builder-union-all](../../../images/data-federation-querybuilder-union-all.png)
6158

6259
**Transformation**
6360

6461
Select a data source/query that contains columns you want to transform. Select the **Transform** checkbox next to the column you want to unfold and flatten. The bottom pane allows you to specify the aliases for the generated columns.
6562

66-
![data-federation-querybuilder-transformation](../../../images/data-federation-querybuilder-transformation.png)
63+
![Query-builder-transformation](../../../images/data-federation-querybuilder-transformation.png)
64+
65+
Click **OK** to create a query.
66+
67+
### Copy Calculated Fields
68+
The Data Source Wizard invokes the following page if one of the selected data sources contains calculated fields. Drag or double-click the calculated field you want to copy to the resulting federated data source. You can specify the name of the copied calculated field in the left Grid.
69+
70+
![Copy-calculated-fields](../../../images/data-federation-data-source-browser-copy-calculated-fields.png)
71+
72+
73+
### See the Result
6774

68-
Click **OK** to create a query.
69-
70-
5. The [Data Source Browser](../ui-elements/data-source-browser.md) displays the newly created Federated Data Source.
75+
The [Data Source Browser](../ui-elements/data-source-browser.md) displays the newly created Federated Data Source.
7176

72-
The image below displays a new _Federation Data Source 1_ with a joined _SQlite Orders_ query.
77+
The image below displays a new _Federation Data Source 1_ with a joined _SQlite_ Orders query.
7378

74-
![Federated_data_source_configuration](../../../images/data-source-browser-federated-data-source.png)
79+
![Federated_data_source_configuration](../../../images/data-source-browser-federated-data-source.png)
7580

76-
The query name is the same as the root table's name in the query builder. Click the **Rename** button in the **Query** group on the **Data Source** ribbon tab to change the query name.
81+
The query name is the same as the root table's name in the query builder. Click the **Rename** button in the **Query** group on the **Data Source** ribbon tab to change the query name.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Binding to MongoDB
3+
author: Margarita Zakhodyaeva
4+
---
5+
# Binding to MongoDB
6+
7+
The WinForms Designer allows you to connect to MongoDB in the Data Source Wizard.
8+
9+
> [!NOTE]
10+
> The [MongoDB.Driver](https://www.nuget.org/packages/MongoDB.Driver) package should be installed in your project to supply MongoDB data at runtime.
11+
12+
Follow the steps below to establish a database connection:
13+
14+
1. Click the **New Data Source** button in the **Data Source** ribbon tab.
15+
16+
![new-data-source](../../../images/new-data-source.png)
17+
2. On the first page of the invoked **Data Source Wizard** dialog, select **MongoDB** and click **Next**.
18+
19+
![Data Source Wizard DataBase MongoDB](../../../images/win-data-source-wizard-database-mongodb.png)
20+
21+
3. Specify connection parameters on the next page in the following ways:
22+
23+
- Pass an entire string.
24+
25+
![MongoDB Connection String](../../../images/win-data-source-wizard-mongo-specify-connection-parameters.png)
26+
27+
Refer to the following topic for information about connection string format and options: [Connection String URI Format](https://docs.mongodb.com/manual/reference/connection-string/).
28+
29+
- Enter connection fields individually.
30+
31+
![MongoDB Individual Connection Fields](../../../images/win-data-source-wizard-database-mongodb-individual.png)
32+
33+
34+
35+
4. The following page allows you to configure queries. Select databases and collections that you want to load from the MongoDB instance. A string stored in a query's **Collection** column is the default name for the query. The names of MongoDB queries should be unique. You can use the **Alias** column to set unique names for queries in the same collection. To filter queries, add a filter string to the **Filter** column.
36+
37+
![Data Source Wizard MongoDB specify quueries](../../../images/win-data-source-wizard-mongodb-specify-queries.png)

dashboard-for-desktop/articles/dashboard-designer/provide-data/supported-data-sources.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ legacyId: 17239
66
# Supported Data Sources
77
The Dashboard Designer allows you to establish a connection to various data sources such as SQL databases, Microsoft Excel workbooks, XML/CSV data files or OLAP cubes.
88

9-
The following data source types are supported.
9+
The following data source types are supported:
1010
* [SQL Data Source](#sql-data-source)
1111
* [OLAP Data Source](#olap-data-source)
1212
* [Microsoft Excel Workbooks/CSV Files](#microsoft-excel-workbookscsv-files)
@@ -16,9 +16,7 @@ The following data source types are supported.
1616
* [Object Data Source](#object-data-source)
1717
* [Entity Framework Data Source](#entity-framework-data-source)
1818
* [Federated Data Source](#federated-data-source)
19-
20-
21-
19+
* [MongoDB](#mongodb)
2220

2321

2422
## SQL Data Source
@@ -41,16 +39,16 @@ To connect to various SQL databases, the Dashboard Designer requires correspondi
4139
| MySQL | 4.1 or higher | ADO.NET driver for MySQL | MySql.Data.dll | [Download link](http://dev.mysql.com/downloads/connector/net/) |
4240
| Pervasive PSQL | 9.x or higher | PSQL ADO.NET Data Provider | Pervasive.Data.SqlClient.dll | [Download link](http://www.pervasive.com/database/Home/Products/psqlv12.aspx) |
4341
| PostgreSQL | 7.x or higher | .NET data provider for PostgreSQL | Npgsql.dll | [Download link](http://www.npgsql.org/) |
44-
| VistaDB | 4, 5 | VistaDB ADO.NET Provider | VistaDB.5.NET40.dll | [Download link](http://www.gibraltarsoftware.com/VistaDB) |
42+
| VistaDB | 4, 5, 6 | VistaDB ADO.NET Provider | VistaDB.5.NET40.dll | [Download link](http://www.gibraltarsoftware.com/VistaDB) |
4543
| SQLite | 3.x | ADO.NET provider for SQLite | System.Data.SQLite.dll | [Download link](https://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki) |
4644
| XML file | n/a | n/a | n/a | n/a |
4745

48-
To create a connection to a SQL data source, see [Binding to SQL databases](connecting-to-sql-databases.md).
46+
See the following topic for information on how to create a connection to a SQL data source: [Binding to SQL databases](connecting-to-sql-databases.md).
4947

5048
## OLAP Data Source
51-
To use the OLAP data source, the Dashboard Designer requires Microsoft Analysis Services OLE DB and Microsoft ADOMD.NET providers to be installed on your machine. To learn more, see [Data providers used for Analysis Services connections](https://msdn.microsoft.com/en-us/library/dn141152.aspx#bkmk_OLE).
49+
To use the OLAP data source, the Dashboard Designer requires Microsoft Analysis Services OLE DB and Microsoft ADOMD.NET providers to be installed on your machine. Refer to the following topic for more information: [Data providers used for Analysis Services connections](https://msdn.microsoft.com/en-us/library/dn141152.aspx#bkmk_OLE).
5250

53-
The following OLAP servers are supported.
51+
The following OLAP servers are supported:
5452
* Microsoft SQL Server 2000 Analysis Services
5553
* Microsoft SQL Server 2005 Analysis Services
5654
* Microsoft SQL Server 2008 Analysis Services
@@ -62,7 +60,7 @@ The following OLAP servers are supported.
6260
To create a connection to an OLAP cube data source, see [Binding to OLAP cubes](connecting-to-olap-cubes.md).
6361

6462
## Microsoft Excel Workbooks/CSV Files
65-
The following Microsoft Excel/text formats are supported.
63+
The following Microsoft Excel/text formats are supported:
6664
* XLS
6765
* XLSX
6866
* XLSM
@@ -98,7 +96,7 @@ This data is saved to a local file and can be updated from the original data sou
9896

9997
## Object Data Source
10098

101-
The Dashboard Designer provides a connection to an object data source defined in a separate class within a current project.
99+
The Dashboard Designer allows you to connect to an object data source defined in a separate class within the current project.
102100

103101
To create a connection to an Object data source, see [Binding to Object Data Sources](binding-to-object-data-sources.md).
104102

@@ -118,8 +116,21 @@ To create a connection to an EF data source, see [Connect to EF Data Sources](co
118116
* [SQL Data Source](#sql-data-source)
119117
* [Excel Data Source](#microsoft-excel-workbookscsv-files)
120118
* [Object Data Source](#object-data-source)
119+
* [MongoDB](#mongodb)
120+
121+
See the following topic for information on how to create a federated data source with the **Data Source Wizard**: [Binding to Federated Data Source](binding-to-federated-data-source.md).
122+
123+
## MongoDB
124+
125+
The Dashboard Designer allows you to connect to a MongoDB instance and stores data in JSON-like documents.
126+
127+
The [MongoDB.Driver](https://www.nuget.org/packages/MongoDB.Driver) package should be installed in your project to supply MongoDB data at runtime.
128+
129+
You can use MongoDB as the original data source to create an Extract database. MongoDB can be used to create a federated data source.
130+
131+
You can filter the MongoDB data source and add calculated fields.
121132

122-
To create a Federated data source with the **Data Source Wizard**, see [Binding to Federated Data Source](binding-to-federated-data-source.md).
133+
Refer to the following article for more information on how to connect to MongoDB: [Binding to MongoDB](binding-to-mongodb.md).
123134

124135

125136

16.6 KB
Loading
18 Bytes
Loading
5.42 KB
Loading
5.39 KB
Loading
44.8 KB
Loading
-36.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)