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: guides/uis/fiori.md
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
impl-variants: true
2
+
3
3
---
4
4
5
5
# Serving SAP Fiori UIs
@@ -18,23 +18,9 @@ For entities exposed via OData V4 there is a _Fiori preview_ link on the index p
18
18
19
19
::: details Be aware that this is **not meant for production**.
20
20
21
-
<divclass="impl node">
22
-
23
-
The preview is not meant as a replacement for a proper SAP Fiori elements (UI5) application.
24
-
It is only active locally where the [development profile](../../node.js/cds-env#profiles) is enabled.
25
-
26
-
To also enable it in cloud deployments, for test or demo purposes maybe, set <Config>cds.fiori.preview:true</Config>.
27
-
28
-
</div>
29
-
30
-
<divclass="impl java">
31
-
32
21
The preview is not meant as a replacement for a proper SAP Fiori elements (UI5) application.
33
-
It is active by default, but disabled automatically in case the [production profile](../../java/developing-applications/configuring#production-profile) is enabled.
34
-
35
-
To also enable it in cloud deployments, for test or demo purposes maybe, set <Configjava>cds.index-page.enabled:true</Config>.
36
22
37
-
</div>
23
+
It's active by default, but disabled automatically in production. To also enable it in cloud deployments, for test or demo purposes maybe, set <Config>cds.fiori.preview:true</Config> for Node.js apps, or <Configjava>cds.index-page.enabled:true</Config> for Java.
38
24
39
25
:::
40
26
@@ -65,7 +51,7 @@ The SAP Fiori tools provide advanced support for [adding SAP Fiori apps](https:/
65
51
66
52
### Using [`cds add`](../../tools/cds-cli#sample)
67
53
68
-
Use `cds add sample` to add Fiori sample code to an existing project, or create a new one with `cds init <project> --nodejs --add sample`.
54
+
Use `cds add sample` to add Fiori sample code to an existing project, or create a new Node.js project with `cds init <project> --nodejs --add sample`. To create a Java project use `cds init <project> --java --add sample`.
69
55
70
56
71
57
### From [Capire Samples](https://github.com/capire)
@@ -812,7 +798,7 @@ You can now start the server with `cds watch` and see the hierarchical tree view
812
798
 {style="filter: drop-shadow(0 2px 5px rgba(0,0,0,.40));"}
813
799
814
800
The compiler automatically expands the shortcut annotation `@hierarchy` to the
0 commit comments