creating a json model sap ui5
#!jssap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/MessageToast",
"sap/ui/model/json/JSONModel"
], function (Controller, MessageToast, JSONModel) {
"use strict";
return Controller.extend("sap.ui.demo.wt.controller.App", {
onInit : function () {
// set data model on view
var oData = {
recipient : {
name : "World"
}
};
var oModel = new JSONModel(oData);
this.getView().setModel(oModel);
},
onShowHello : function () {
MessageToast.show("Hello World");
}
});
});
Also in JavaScript:
- javascript operator double not
- dynamodb get all items nodejs
- node js with express medium
- data submit notification in javascript
- ejs current year
- js image on canvas
- Mobx-react console warning related observer
- javascript remove last item
- how to get session value using javascript
- javascript element read attribute
- js string have number js
- js check if object key exists
- email regular expression
- 2gis nuxt
- ng-container vs ng-template
- subject in angular 8
- nested if javascript
- largest and smallest number in an array 1-100 javascript
- unique array javascript es6 Map
- how to convert json to javascript object
- react useeffect not on first render
- javascript detect page
- what does conservatism really mean
- current month in javascript