on 07-10-2020 5:43 PM
Hi,
The sample fiori app at
https://github.com/SAP-samples/cloud-cap-samples/tree/master/fiori
shows a popup that requires the GUID during order creation:
Thank you
Sam
The popup seems a new behaviour in sapui5 from 1.79.0, sapui5 fe now during a document creation shows a popup with all the not computed and visible key fields:
(https://sapui5.hana.ondemand.com/1.79.0/resources/sap/fe/core/TransactionHelper-dbg.js?eval line 259).
if (aNonComputedVisibleKeyFields.length > 0) {
...
oCreationPromise = this._launchDialogWithKeyFields(
oMainListBinding,
oTransientListBinding,
oNewDocumentContext,
aNonComputedVisibleKeyFields,
oModel,
mParameters
);
CDS aspect "cuid" define the field key "ID" without the annotation "@Core.Computed".
I tried to add "@Core.Computed" in @sap\cds\common.cds and the popup disappered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Samuele,
I added the @Core.Computed annotation to the ID fields in my annotations files and it works like a charm, but I trust that the CAP team will solve it in future releases because adding this annotation for each entity is quite cumbersome and I think that adding it to the @sap\cds\common.cds file isn't the best solution.
Thanks for sharing your solution!
Best regards,
Marc
Thanks for letting us know. We will get in contact with the Fiori team and, if needed, add the Core.Computed annotation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, for that ... unfortunately there's nothing we can do from CAP side as a quick fix, as that is beyond our reach.
Maybe best is to pin your ui5/fe version to a last-known-good, e.g. like so in your ./app/index.html for local tests:
<!-- <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" -->
<script src="https://sapui5.hana.ondemand.com/1.78.6/resources/sap-ui-core.js"
as in https://github.com/SAP-samples/cloud-cap-samples/pull/123
Regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.