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: about/best-practices.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -773,7 +773,7 @@ This would extend the common reuse type `managed` obtained from `@sap/cds/common
773
773
774
774
As introduced in the section on [*Event Listeners*](#event-listeners) above, everyone can add event handlers to every service. Similar to aspect-oriented modeling, this allows to extend reuse services.
775
775
776
-
For example, assumed you're using a reuse package that provides a service to manage reviews, as show-cased in the [*cap/samples**reviews*](https://github.com/sap-samples/cloud-cap-samples/tree/main/reviews) package. And whenever a new review is added you want to do something in addition. To accomplish this, simply add a respective event handler to the reuse service like so:
776
+
For example, assuming you're using a reuse package that provides a service to manage reviews, as show-cased in the [*capire/reviews*](https://github.com/capire/reviews) package. And whenever a new review is added you want to do something in addition. To accomplish this, simply add a respective event handler to the reuse service like so:
Copy file name to clipboardExpand all lines: advanced/fiori.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,9 @@ The SAP Fiori tools provide advanced support for [adding SAP Fiori apps](https:/
77
77
Use `cds add sample` to add Fiori sample code to an existing project, or create a new one with `cds init <project> --add sample`.
78
78
79
79
80
-
### From [cap/samples](https://github.com/sap-samples/cloud-cap-samples)
80
+
### From [Capire Samples](https://github.com/capire)
81
81
82
-
For example, you can copy the [SAP Fiori apps from cap/samples](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookstore/app) as a template and modify the content as appropriate.
82
+
For example, you can copy the [SAP Fiori apps from capire/bookshop](https://github.com/capire/bookstore/tree/main/app) as a template and modify the content as appropriate.
83
83
84
84
85
85
### From [Incidents Sample](https://github.com/SAP-samples/fiori-elements-incident-management/tree/sampleSolution)
@@ -113,7 +113,7 @@ annotate CatalogService.Books with @(
113
113
```
114
114
115
115
116
-
[Find this source and many more in **cap/samples**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookstore/app){.learn-more target="_blank"}
116
+
[Find this source and many more in **capire/bookstore**.](https://github.com/capire/bookstore/tree/main/app){.learn-more target="_blank"}
117
117
[Learn more about **OData Annotations in CDS**.](./odata#annotations){.learn-more}
118
118
119
119
@@ -134,7 +134,7 @@ While CDS in principle allows you to add such annotations everywhere in your mod
134
134
...
135
135
```
136
136
137
-
[See this also in **cap/samples/fiori**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/services.cds){.learn-more}
137
+
[See this also in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/services.cds){.learn-more}
138
138
139
139
**Reasoning:** This recommendation essentially follows the best practices and guiding principles of [Conceptual Modeling](../guides/domain-modeling#domain-driven-design) and [Separation of Concerns](../guides/domain-modeling#separation-of-concerns).
140
140
@@ -388,7 +388,7 @@ SAP Fiori supports edit sessions with draft states stored on the server, so user
388
388
389
389
[For details and guidelines, see **SAP Fiori Design Guidelines for Draft**.](https://experience.sap.com/fiori-design-web/draft-handling/){.learn-more}
390
390
391
-
[Find a working end-to-end version in **cap/samples/fiori**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/fiori){.learn-more}
391
+
[Find a working end-to-end version in **capire/bookstore**.](https://github.com/capire/bookstore/tree/main/app){.learn-more}
392
392
393
393
[For details about the draft flow in SAP Fiori elements, see **SAP Fiori elements > Draft Handling**](https://ui5.sap.com/#/topic/ed9aa41c563a44b18701529c8327db4d){.learn-more}
394
394
@@ -401,7 +401,7 @@ To enable draft for an entity exposed by a service, simply annotate it with `@od
401
401
annotate AdminService.Books with @odata.draft.enabled;
402
402
```
403
403
404
-
[See it live in **cap/samples**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L94){.learn-more}
404
+
[See it live in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L79){.learn-more}
405
405
406
406
::: warning
407
407
You can't project from draft-enabled entities, as annotations are propagated. Either _enable_ the draft for the projection and not the original entity or _disable_ the draft on the projection using `@odata.draft.enabled: null`.
@@ -429,9 +429,9 @@ Adding the annotation `@fiori.draft.enabled` won't work if the corresponding `_t
429
429
430
430
{style="margin:0"}
431
431
432
-
[See it live in **cap/samples**.](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L93){.learn-more}
432
+
[See it live in **capire/bookstore**.](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L78){.learn-more}
433
433
434
-
If you're editing data in multiple languages, the _General_ tab in the example above is reserved for the default language (often "en"). Any change to other languages has to be done in the _Translations_ tab, where a corresponding language can be chosen [from a drop-down menu](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookstore/app/admin-books/fiori-service.cds#L116) as illustrated above. This also applies if you use the URL parameter `sap-language` on the draft page.
434
+
If you're editing data in multiple languages, the _General_ tab in the example above is reserved for the default language (often "en"). Any change to other languages has to be done in the _Translations_ tab, where a corresponding language can be chosen [from a drop-down menu](https://github.com/capire/bookstore/blob/main/app/admin-books/fiori-service.cds#L104) as illustrated above. This also applies if you use the URL parameter `sap-language` on the draft page.
435
435
436
436
### Draft Choreography: How Draft Editing Works
437
437
@@ -622,7 +622,7 @@ entity Books { //...
622
622
}
623
623
```
624
624
625
-
[Find this also in our **cap/samples**.](https://github.com/sap-samples/cloud-cap-samples/tree/main/bookshop/db/schema.cds){.learn-more}
625
+
[Find this also in our **capire/bookstore**.](https://github.com/capire/bookshop/blob/main/db/schema.cds){.learn-more}
626
626
627
627
Still, all SAP Fiori UIs, on all services exposing `Books`, will automatically receive Value Help for currencies. You can also benefit from that when [deriving your project-specific code list entities from **sap.common.CodeList**](../cds/common#adding-own-code-lists).
Copy file name to clipboardExpand all lines: get-started/in-a-nutshell.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,9 +110,6 @@ After you completed the [*Initial Setup*](./), you jumpstart a project as follow
110
110
111
111
:::
112
112
113
-
114
-
115
-
116
113
## Capture Domain Models
117
114
118
115
@@ -399,7 +396,6 @@ cds add data --records 10
399
396
[Find the full set of options here.](../tools/cds-cli.md#data){.learn-more}
400
397
:::
401
398
402
-
403
399
<spanclass="impl node">
404
400
405
401
After you've added these files, `cds watch` restarts the server with output, telling us that the files have been detected and their content has been loaded into the database automatically:
This sample is a CAP adaptation of the popular [SFLIGHT](https://blog.sap-press.com/what-is-sflight-and-the-flight-and-booking-data-model-for-abap) sample app in ABAP. It's a great source for how to add SAP **Fiori** applications to a CAP project, including adding UI test suites on various stacks.
Copy file name to clipboardExpand all lines: guides/databases-hana.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ The datasource for SAP HANA is then auto-configured based on available service b
58
58
59
59
## Running `cds build`
60
60
61
-
Deployment to SAP HANA is done via the [SAP HANA Deployment Infrastructure (HDI)](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-developer-guide-for-cloud-foundry-multitarget-applications-sap-business-app-studio/sap-hdi-deployer?) which in turn requires running `cds build` to generate all the deployable HDI artifacts. For example, run this in [cap/samples/bookshop](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop):
61
+
Deployment to SAP HANA is done via the [SAP HANA Deployment Infrastructure (HDI)](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-developer-guide-for-cloud-foundry-multitarget-applications-sap-business-app-studio/sap-hdi-deployer?) which in turn requires running `cds build` to generate all the deployable HDI artifacts. For example, run this in [capire/bookshop](https://github.com/capire/bookshop):
Copy file name to clipboardExpand all lines: guides/databases-postgres.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -420,7 +420,7 @@ You can use `cds deploy` with option `--dry` to simulate and inspect how things
420
420
cds deploy --dry --model-only --out cds-model.csn
421
421
```
422
422
423
-
2. Change your models, for example in *[cap/samples/bookshop/db/schema.cds](https://github.com/SAP-samples/cloud-cap-samples/blob/main/bookshop/db/schema.cds)*:
423
+
2. Change your models, for example in *[capire/bookshop/db/schema.cds](https://github.com/capire/bookshop/blob/main/db/schema.cds)*:
Copy file name to clipboardExpand all lines: guides/databases-sqlite.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -492,7 +492,7 @@ The rules regarding Timestamps apply to all comparison operators: `=`, `<`, `>`,
492
492
493
493
### Improved Performance {.node}
494
494
495
-
The combination of the above-mentioned improvements commonly leads to significant performance improvements. For example, displaying the list page of Travels in [cap/sflight](https://github.com/SAP-samples/cap-sflight) took **>250ms** in the past, and **~15ms** now.
495
+
The combination of the above-mentioned improvements commonly leads to significant performance improvements. For example, displaying the list page of Travels in [capire/xtravels](https://github.com/capire/xtravels) took **>250ms** in the past, and **~15ms** now.
Copy file name to clipboardExpand all lines: guides/databases.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ You can use CSV files to fill your database with initial data - see [Location of
166
166
167
167
<div class="impl node">
168
168
169
-
For example, in our [*cap/samples/bookshop*](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop/db/data) application, we do so for*Books*, *Authors*, and *Genres* as follows:
169
+
For example, in our [*capire/bookshop*](https://github.com/capire/bookshop/tree/main/db/data) application, we do so for*Books*, *Authors*, and *Genres* as follows:
170
170
171
171
```zsh
172
172
bookshop/
@@ -427,7 +427,7 @@ When you've created a CAP Java application with `cds init --java` or with CAP Ja
427
427
### Using `cds compile`
428
428
429
429
430
-
For example, given these CDS models (derived from [*cap/samples/bookshop*](https://github.com/SAP-samples/cloud-cap-samples/tree/main/bookshop)):
430
+
For example, given these CDS models (derived from [*capire/bookshop*](https://github.com/capire/bookshop)):
431
431
432
432
::: code-group
433
433
@@ -1191,5 +1191,4 @@ Once you have 2 non-HANA local databases, you need to have 2 distinct database c
1191
1191
1192
1192
</div>
1193
1193
1194
-
CAP samples demonstrate this in [cap/samples/fiori](https://github.com/SAP-samples/cloud-cap-samples/commit/65c8c82f745e0097fab6ca8164a2ede8400da803). <br>
1195
-
There's also a [code tour](https://github.com/SAP-samples/cloud-cap-samples#code-tours) available for that.
1194
+
CAP samples demonstrate this in [cap/samples/fiori](https://github.com/SAP-samples/cloud-cap-samples/commit/65c8c82f745e0097fab6ca8164a2ede8400da803).
0 commit comments