You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/webide-live-odata/webide-live-odata.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Locate the **`Component.js`** file under the *`webapp`* folder. **Double click**
81
81
82
82

83
83
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`.
85
85
86
86

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

114
114
115
-
**Rename***`local`* to `localservice`.
115
+
**Rename***`local`* to `mockservice`.
116
116
117
117
**Rename***`toysData`* to `local`.
118
118
@@ -148,17 +148,15 @@ Open the **Detail controller**, or the controller ending in `_S1`.
148
148
149
149

150
150
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.
152
152
153
-

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.
154
154
155
-
In the `handleRouteMatched` function, find the `oParams` variable. **Change the value** of `expand` from *`PartOf`* to **`Parts`**.
155
+

156
156
157
-

157
+
In the `oBindingParameters` variable, **Change the value** of `path` from *`PartOf`*to **`Parts`** and `entitySet` from *`ToysSet`* to **`Sets`**.
158
158
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
-

159
+

0 commit comments