Skip to content

Commit fcca9c8

Browse files
authored
Merge pull request #8542 from mendix/qt-moveodatadoc
Move OData How-to to Refguide
2 parents 729d7be + 6ed1d59 commit fcca9c8

File tree

11 files changed

+14
-11
lines changed

11 files changed

+14
-11
lines changed

content/en/docs/howto/integration/exposing-data-to-bi-tools-using-odata.md renamed to content/en/docs/refguide/modeling/integration/odata-services/exposing-data-to-bi-tools-using-odata.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
22
title: "Expose Data to BI Tools Using OData"
3-
url: /howto/integration/exposing-data-to-bi-tools-using-odata/
3+
url: /refguide/exposing-data-to-bi-tools-using-odata/
44
weight: 13
55
description: "Describes how to create a published OData service with resources, add the OData server to Tableau and Excel, combine resources in Tableau, and create custom queries."
6+
aliases:
7+
- /howto/integration/exposing-data-to-bi-tools-using-odata/
8+
#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details.
69
---
710

811
## Introduction
@@ -65,15 +68,15 @@ In this section, we will outline the steps for adding more than one published en
6568

6669
Imagine you have an app that helps with asset management. You have a Published OData Service with persistable entities called **SmartTask** and **Employee** that expose information. The domain model looks like this:
6770

68-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/asset-manager-domain-model.png" class="no-border" >}}
71+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/asset-manager-domain-model.png" class="no-border" >}}
6972

7073
To visualize data from your app in Tableau, follow these steps:
7174

7275
1. Open **Tableau** and select **Connect** > **To a Server** > **OData**:
7376
2. Return to Studio Pro and double-click the published OData service. Copy the link in the **Location** field to the clipboard.
7477
3. On the **Server Connection** dialog box, enter the copied OData service **Location** link for the **Server** address:
7578

76-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582020.png" class="no-border" >}}
79+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582020.png" class="no-border" >}}
7780

7881
Include authentication credentials if you set them up.
7982

@@ -82,7 +85,7 @@ To visualize data from your app in Tableau, follow these steps:
8285
6. Click **Data** > **New Data Source** and repeat steps 1–5 to add a server connection for other published OData services.
8386
7. Open **Sheet1**. Under **Data**, click the first entity and drag a desired entity **Attribute** from **Measures** to **Dimensions**. In this case, click **Engineers** and drag **ID** from **Measures** to **Dimensions**:
8487

85-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582012.png" class="no-border" >}}
88+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582012.png" class="no-border" >}}
8689

8790
8. Similarly, click and drag an attribute from the second entity from **Measures** to **Dimensions**. In this case, click **SmartTasks** and drag **SmartTask_Engineer** from **Measures** to **Dimensions**.
8891
9. Go to **Data** > **Edit Relationships...** to define the relationship between the different data sources.
@@ -93,25 +96,25 @@ To visualize data from your app in Tableau, follow these steps:
9396
4. Remove any default mappings.<br />
9497
5. Click **Add...** to configure a field mapping.
9598

96-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582013.png" class="no-border" >}}
99+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582013.png" class="no-border" >}}
97100

98101
11. In the **Add/Edit Field Mapping** window, select the attribute for the first entity for the **Primary data source field** and **Entity1_Entity2** for the **Secondary data source field**, then click **OK** to save the field mapping. In this case, select **ID** for the **Primary data source field** and **SmartTask_Engineer** for the **Secondary data source field**:
99102

100-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582011.png" class="no-border" >}}
103+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582011.png" class="no-border" >}}
101104

102105
12. In the **Relationships** window, click **OK** to save the relationships:
103106

104-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582007.png" class="no-border" >}}
107+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582007.png" class="no-border" >}}
105108

106109
13. Select the second entity for the data source (in this case, **Engineers**) and drag the **Name** attribute from the **Dimensions** section to **Rows**:
107110

108-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582006.png" class="no-border" >}}
111+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582006.png" class="no-border" >}}
109112

110113
14. Select your first published entity (in this case, **SmartTasks**) for the data source and do the following:<br />
111114
1. Click the **SmartTask_Engineer** attribute to use it as the linking field.<br />
112115
2. Drag **Number of Records** from the **Measures** section to **Columns**.
113116

114-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18582005.png" class="no-border" >}}
117+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18582005.png" class="no-border" >}}
115118

116119
You should now see a bar chart of the data.
117120

@@ -125,12 +128,12 @@ To filter data with query parameters, follow these steps:
125128
2. Click the OData URL to change the connection settings.
126129
3. Add `?$top=2` to the server URL (in order to only retrieve the first two values) and click **Sign In**:
127130

128-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18581998.png" class="no-border" >}}
131+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18581998.png" class="no-border" >}}
129132

130133
4. On the warning indicating that the data being used was refreshed, click **OK**.
131134
5. Open **Sheet1** and drag **Name** to **Rows** again. Now you should now see a bar chart with only the data of the two engineers:
132135

133-
{{< figure src="/attachments/howto/integration/exposing-data-to-bi-tools-using-odata/18581997.png" class="no-border" >}}
136+
{{< figure src="/attachments/refguide/modeling/integration/exposing-data-to-bi-tools-using-odata/18581997.png" class="no-border" >}}
134137

135138
6. You can combine filters by using the `&` character. Repeat steps 1–4, but now use `http://localhost:8080/odata/Expenses/Expenses?$skip=1` as the server URL. You should now see a bar chart showing the data of 2 and 3.
136139

0 commit comments

Comments
 (0)