Skip to Content

Sample Fiori App - creating a new order shows a popup for the GUID?

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

0amvg.png (96.6 kB)
Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Jul 12 at 03:12 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01 at 12:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded