Good afternoon, I am in full development of an application using SAPUI5, I have serious doubts with this piece of code and I would like to understand what each function does, what is really being done.
this happens inside the "Controller" of a "View" here I leave the view:
And here the Controller:
What I would like to understand is this piece of code:
var ModelDriver = new JSONModel();
this.getView().setModel(ModelDriver, "infodriver");
ModelDriver = this.getView().getModel("infodriver");
ModelDriver.setData({
//DriverId: "",
DriverImage: "http://www.buscandolalibertad.com/ext/rockettheme/rokbb/noavatar.jpg"
//DriverName: "",
//DriverLastName: ""
});
Thanks in advance. Greetings