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
{{ message }}
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: exercises/09/readme.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,22 +233,18 @@ Now you can open the "Browse Books" app and see the beginnings of a list report.
233
233
234
234

235
235
236
-
### 5. Create a CDS index file
237
236
238
-
This is the point where you can introduce an `index.cds` file which controls which services are exposed.
237
+
### 5. Create a CDS index file with annotations
239
238
240
-
:point_right: Create a file `index.cds` in the `srv/` directory, and add the following single line as the initial content:
239
+
This is the point where you can introduce an `index.cds` file which controls which services are exposed, and also which can contain annotations to drive the Fiori elements based app.
240
+
241
+
:point_right: Create a file `index.cds` in the `srv/` directory, and initially add this single line, which brings in the service definitions defined in `service.cds`:
241
242
242
243
```cds
243
244
using from './service';
244
245
```
245
246
246
-
> At this point you can actually reload the UI; while you will see some semblance of an app when you select the tile in the launchpad, the app's display will be mostly empty.
247
-
248
-
249
-
### 6. Add annotations for the service
250
-
251
-
Now let's look at important content that will help us join together in our minds the two complementary worlds of CAP and Fiori. This content is to be added to `index.cds` and controls what gets served to Fiori frontends, via annotations that form a rich layer of metadata over the top of the service.
247
+
Now let's look at important content that will help us join together in our minds the two complementary worlds of CAP and Fiori. This content is to be added next to `index.cds` and controls what gets served to Fiori frontends, via annotations that form a rich layer of metadata over the top of the service.
252
248
253
249
:point_right: Below the initial line (`using from ...`) that you added to `index.cds` in the previous step, add the following content:
254
250
@@ -289,7 +285,7 @@ annotate CatalogService.Authors with {
289
285
> You may see some warnings that there are no texts for the internationalization (i18n) identifiers. We'll fix this shortly, you can ignore the warnings for now.
290
286
291
287
292
-
### 7. Test the app
288
+
### 6. Test the app
293
289
294
290
The app should be ready to invoke. Reload the Fiori launchpad and select the tile. It should open up into a nice List Report style Fiori Elements app - all driven from the service's annotations:
295
291
@@ -298,7 +294,7 @@ The app should be ready to invoke. Reload the Fiori launchpad and select the til
298
294
Well done!
299
295
300
296
301
-
### 8. Add base internationalization texts
297
+
### 7. Add base internationalization texts
302
298
303
299
Just to round things off, add some i18n texts - they're referred to in various annotation sections, and it will make the app look a little more polished.
0 commit comments