While diving into SAPUI5, I decided to challenge myself by creating a basic form. Unfortunately, my attempts are falling short as the new entry I'm trying to add to my JSON model isn't showing up in the file when I run my code. No error messages pop up either.
Here's what I've tried so far:
EmployeeForm.view.xml
<mvc:View xmlns:core="sap.ui.core"
controllerName="sap.ui.test.controller.EmployeeForm"
xmlns="sap.m"
xmlns:form="sap.ui.layout.form"
xmlns:mvc="sap.ui.core.mvc">
.
. [code omitted for brevity]
.
</mvc:View>
EmployeeForm.controller.js
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/core/routing/History",
"sap/ui/model/json/JSONModel"
], function (Controller, History, JSONModel) {
"use strict";
.
. [code omitted for brevity]
.
});
manifest.json
...
"models": {
"employee": {
"type": "sap.ui.model.json.JSONModel",
"uri": "Employees.json"
}
},
...