Compare commits

...

3 Commits

Author SHA1 Message Date
nkaputnik
e08cdf7831 typo 2021-12-10 10:41:34 +01:00
nkaputnik
1ec44aaecf Fixed dependency 2021-12-10 10:40:17 +01:00
nkaputnik
a6ea2fb130 Added changes for simple field extensibility (UIFlex) 2021-12-07 11:10:12 +01:00
5 changed files with 36 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
using { Currency, managed, sap } from '@sap/cds/common';
using { Currency, managed, sap, extensible } from '@sap/cds/common';
namespace sap.capire.bookshop;
entity Books : managed {
entity Books : managed, extensible {
key ID : Integer;
title : localized String(111);
descr : localized String(1111);
@@ -13,7 +13,7 @@ entity Books : managed {
image : LargeBinary @Core.MediaType : 'image/png';
}
entity Authors : managed {
entity Authors : managed, extensible {
key ID : Integer;
name : String(111);
dateOfBirth : Date;

View File

@@ -50,6 +50,10 @@
}
},
"sap.ui5": {
"flexEnabled": true,
"config": {
"experimentalCAPScenario": true
},
"dependencies": {
"minUI5Version": "1.81.0",
"libs": {

View File

@@ -22,6 +22,10 @@
}
},
"sap.ui5": {
"flexEnabled": true,
"config": {
"experimentalCAPScenario": true
},
"dependencies": {
"libs": {
"sap.fe.templates": {}

View File

@@ -10,7 +10,21 @@
<script>
window["sap-ushell-config"] = {
defaultRenderer: "fiori2",
applications: {}
applications: {},
bootstrapPlugins: {
RuntimeAuthoringPlugin: {
component: "sap.ushell.plugins.rta",
config: {
validateAppVersion: false,
},
},
PersonalizePlugin: {
component: "sap.ushell.plugins.rta-personalize",
config: {
validateAppVersion: false,
},
},
}
};
</script>
@@ -22,8 +36,13 @@
data-sap-ui-frameOptions="allow"
></script>
<script>
sap.ui.getCore().attachInit(()=> sap.ushell.Container.createRenderer().placeAt("content"))
</script>
sap.ui.getCore().attachInit(()=> sap.ushell.Container.createRenderer().placeAt("content"));
sap.ui
.getCore()
.getConfiguration()
.setFlexibilityServices([{ connector: "SessionStorageConnector" }]);
sap.ui.getCore().getConfiguration().setLanguage("en");
</script>
</head>
<body class="sapUiBody" id="content"></body>

View File

@@ -13,6 +13,9 @@
},
"cds": {
"requires": {
"extensibility": {
"kind": "uiflex"
},
"auth": {
"strategy": "dummy"
},