Skip to content

Commit 9a907f7

Browse files
committed
minor tweaks to ex12
1 parent d624889 commit 9a907f7

File tree

1 file changed

+2
-2
lines changed
  • exercises/12-extend-fiori-ui-with-annotations

1 file changed

+2
-2
lines changed

exercises/12-extend-fiori-ui-with-annotations/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ annotate Customers with {
9696
}
9797
```
9898

99-
The f `annotate` here is fairly easy to think about: it adds `@title` annotations to each of the properties in the entity defined just above it in the file; the effect of this is that "Customer ID" and "Customer Name" will appear as column headers instead of the raw property names "ID" and "name" (you'll see this shortly in the popup that will appear when we invoke Value Help).
99+
Let's start with the second of the two `annotate` expressions here. It's fairly easy to think about: it adds `@title` annotations to each of the properties in the entity defined just above it in the file; the effect of this is that "Customer ID" and "Customer Name" will appear as column headers instead of the raw property names "ID" and "name" (you'll see this shortly in the popup that will appear when we invoke Value Help).
100100

101101
The first is a little bit more special. The `@cds.odata.valuelist` annotation provides advanced, convenient support for Value Help as understood and supported by SAP Fiori. When added to an entity, like here, all managed associations targeting this entity will automatically receive Value Help lists. This single annotation causes the generation of various `@Common.ValueList` annotations.
102102

@@ -144,7 +144,7 @@ This time, you'll see that as well as the Customer field being open for input, t
144144
```text
145145
[cds] - > READ Customers { '$select': 'ID,name', '$count': 'true', '$orderby': 'ID', '$skip': '0', '$top': '73' }
146146
>> delegating to remote service...
147-
[remote] - GET https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER//A_BusinessPartner?$select=BusinessPartner,BusinessPartnerFullName&$orderby=BusinessPartner%20asc&$inlinecount=allpages&$top=73 {
147+
[remote] - GET https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner?$select=BusinessPartner,BusinessPartnerFullName&$orderby=BusinessPartner%20asc&$inlinecount=allpages&$top=73 {
148148
headers: {
149149
accept: 'application/json,text/plain',
150150
'accept-language': 'en-GB',

0 commit comments

Comments
 (0)