Skip to content

Commit 1068a78

Browse files
committed
updates for Live Odata service tutorial in refernce to issue #2263
1 parent 9b21df8 commit 1068a78

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

tutorials/webide-live-odata/17.png

-38.7 KB
Binary file not shown.

tutorials/webide-live-odata/18.png

-57.1 KB
Binary file not shown.

tutorials/webide-live-odata/8.png

-84.7 KB
Binary file not shown.

tutorials/webide-live-odata/9.png

-77 KB
Binary file not shown.

tutorials/webide-live-odata/webide-live-odata.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Locate the **`Component.js`** file under the *`webapp`* folder. **Double click**
8181

8282
![location of Component file](7.png)
8383

84-
Two updates need to be made to this file to switch from the Mock Data to the Live Data service. Locate the server initialization line and the navigation properties variable. You want to remove the `server.init()` line as this initializes the mock server. Additionally, you need to update the navigation properties to match the new entity name of **Sets** instead of `ToysSet`.
84+
One update need to be made to this file to switch from the Mock Data to the Live Data service. You will need to update the navigation properties to match the new entity name of **Sets** instead of `ToysSet`.
8585

8686
![places to update in Component file](8.png)
8787

@@ -112,7 +112,7 @@ Locate the `dataSources` array in the manifest file. You have added a new data s
112112

113113
![data sources highlighted in manifest file](10c.png)
114114

115-
**Rename** *`local`* to `localservice`.
115+
**Rename** *`local`* to `mockservice`.
116116

117117
**Rename** *`toysData`* to `local`.
118118

@@ -148,17 +148,15 @@ Open the **Detail controller**, or the controller ending in `_S1`.
148148

149149
![detail controller location in file](15.png)
150150

151-
The **expand parameter** needs to be updated to match the new entity description. There are 2 instances of `PartOf` in the controller file. Both need to be updated.
151+
The **expand parameter** needs to be updated to match the new entity description.
152152

153-
![value that needs to be changed in controller](16.png)
153+
Towards the bottom of the `onInit` function, right before the `onAfterRendering` function, there is a reference to the _expanded entity name_ that needs to be updated.
154154

155-
In the `handleRouteMatched` function, find the `oParams` variable. **Change the value** of `expand` from *`PartOf`* to **`Parts`**.
155+
![binding parameter for the bar chart and table](17.png)
156156

157-
![expand parameter change to Parts](17.png)
157+
In the `oBindingParameters` variable, **Change the value** of `path` from *`PartOf`* to **`Parts`** and `entitySet` from *`ToysSet`* to **`Sets`**.
158158

159-
Towards the bottom of the `onInit` function, right before the `onAfterRendering` function, there is a reference to the _expanded entity name_ that needs to be updated. In the `oBindingParameters` variable, **Change the value** of `path` from *`PartOf`* to **`Parts`**.
160-
161-
![binding parameter change to Parts](18.png)
159+
![binding parameter change to Parts and Sets](18.png)
162160

163161
**SAVE** your changes.
164162

0 commit comments

Comments
 (0)