cancel
Showing results for 
Search instead for 
Did you mean: 

Inline create in object page: Cannot set properties of undefined (setting 'createNonDraftInfo')

michael_piehl
Active Participant
0 Kudos

I have a Fiori List Report, the object page has a field group, and several UI.LineItem (tables). On one of the tables, I want to create new entries. The change and delete operations work fine, but create causes an error:

Uncaught TypeError: Cannot set properties of undefined (setting 'createNonDraftInfo') library-preload.js:801

I cannot find any information on this setting, so I have no idea where to go next. I've been all over the internet/Github without finding anything helpful. Thanks for you help,

Mike

Here is my manifest:

{
    "_version": "1.17.0",
    "sap.app": {
        "id": "prxssrvsup",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "0.0.1"
        },
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "resources": "resources.json",
        "sourceTemplate": {
            "id": "@sap/generator-fiori:lrop",
            "version": "1.9.2",
            "toolsId": "5a41b725-fefb-4c3a-9c50-c1d6131a9702"
        },
        "dataSources": {
            "mainService": {
                "uri": "/sap/opu/odata/jvs/PRX_SRVSUP_SRV/",
                "type": "OData",
                "settings": {
                    "annotations": [
                        "annotation"
                    ],
                    "localUri": "localService/metadata.xml",
                    "odataVersion": "2.0"
                }
            },
            "annotation": {
                "type": "ODataAnnotation",
                "uri": "annotations/annotation.xml",
                "settings": {
                    "localUri": "annotations/annotation.xml"
                }
            }
        }
    },
    "sap.ui": {
        "technology": "UI5",
        "icons": {
            "icon": "",
            "favIcon": "",
            "phone": "",
            "phone@2": "",
            "tablet": "",
            "tablet@2": ""
        },
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        }
    },
    "sap.ui5": {
        "flexEnabled": true,
        "dependencies": {
            "minUI5Version": "1.71.50",
            "libs": {
                "sap.m": {},
                "sap.ui.core": {},
                "sap.ushell": {},
                "sap.f": {},
                "sap.ui.comp": {},
                "sap.ui.generic.app": {},
                "sap.suite.ui.generic.template": {}
            }
        },
        "contentDensities": {
            "compact": true,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "prxssrvsup.i18n.i18n"
                }
            },
            "": {
                "dataSource": "mainService",
                "preload": true,
                "settings": {
                    "defaultBindingMode": "TwoWay",
                    "defaultCountMode": "Inline",
                    "refreshAfterChange": false
                }
            },
            "@i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "uri": "i18n/i18n.properties"
            }
        },
        "resources": {
            "css": []
        },
        "routing": {
            "config": {},
            "routes": [],
            "targets": {}
        }
    },
    "sap.ui.generic.app": {
        "_version": "1.3.0",
        "settings": {
            "forceGlobalRefresh": false,
            "objectPageHeaderType": "Dynamic",
            "considerAnalyticalParameters": true,
            "showDraftToggle": true
        },
        "pages": {
            "ListReport|Output": {
                "entitySet": "Output",
                "component": {
                    "name": "sap.suite.ui.generic.template.ListReport",
                    "list": true,
                    "settings": {
                        "condensedTableLayout": true,
                        "smartVariantManagement": true,
                        "enableTableFilterInPageVariant": true,
                        "filterSettings": {
                            "dateSettings": {
                                "useDateRange": true
                            }
                        },
                        "tableSettings": {
                            "multiSelect": true,
                            "selectAll": true
                        }
                    }
                },
                "pages": {
                    "ObjectPage|Output": {
                        "entitySet": "Output",
                        "defaultLayoutTypeIfExternalNavigation": "MidColumnFullScreen",
                        "component": {
                            "name": "sap.suite.ui.generic.template.ObjectPage",
                            "settings": {
                                "showConfirmationOnDraftActivate": true,
                                "sections": {
                                    "SEOP": {
                                        "createMode": "inline"
                                    }
                                },
                                "editableHeaderContent": true
                            }
                        }
                    }
                }
            }
        }
    },
    "sap.fiori": {
        "registrationIds": [],
        "archeType": "transactional"
    }
}
michael_piehl
Active Participant
0 Kudos

here is my metadata.

Entity: PrxSrvExecOp

Entity Set: Op

metadata.xml

michael_piehl
Active Participant
0 Kudos

Anyone have any ideas why this won't work for me? what does that error mean? is there a quick fix that I'm missing?

Thanks,

Mike

View Entire Topic
rohith_deraje
Advisor
Advisor
0 Kudos

Hi Mike,

Is your application non-draft?

Inline create for object page table is supported only in draft enabled aplication. Docu ref: https://sapui5.hana.ondemand.com/#/topic/cfb04f0c58e7409992feb4c91aa9410b

For non-draft object page table, you may consider creation through dialog. Please refer to the details here https://sapui5.hana.ondemand.com/#/topic/d7be84d86ad94078b0ba4cc820753c0c

michael_piehl
Active Participant
0 Kudos

I believe my application is draft enabled (I haven't changed any of the default settings related to this).

What setting would I look at to ensure it is draft enabled? is it in the manifest.json?