on 07-08-2023 11:55 PM
Hi.
Error: Uncaught Type Error oCreateModel.create is not a function
It is a local test wirh cds run.
I developed the CAP course already and works well.
But I found out there is not a create function on mitigations app.
So to practice, I've created a new app inside Risk service, named Products.
I created Products table in schema.cds.
I created products new app. I created worklist view and create view.
I created SAVE button, in Create view, to call onSave function.
I developed Create.controller.js and onSave function like attached images bellow.
schema
manifest
Create view
onSave function
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.