Hi everyone,
I made a Gateway Service and I'm able to consume this Service with SAP UI5 (Read/Display data using the OData Model). The Service is also prepared to update values, i tried it in Gateway Client with 'get' and 'put' requests and it works fine.
This is what I have:
var layout = new sap.ui.commons.layout.MatrixLayout('layout');
layout.setWidth('80%');
var rPannel = new sap.ui.commons.Panel('rPannel');
var rTitle = new sap.ui.commons.Title('rTitle');
rTitle.setText('All');
rPannel.setTitle(rTitle);
var oTable = new sap.ui.table.DataTable();
oTable.addColumn(
new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Land"}),
template: new sap.ui.commons.TextField().bindProperty("value", "bankCountry"),
sortProperty:"bankCountry"
}));
oTable.addColumn(
new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Name"}),
template: new sap.ui.commons.TextField().bindProperty("value", "bankName"),
sortProperty:"bankName"
}));
var oModel = new sap.ui.model.odata.ODataModel(
"http://..............",
false,
"user",
"pw");
oTable.setModel(oModel);
oTable.bindRows("/BankCollection");
rPannel.addContent(oTable);
layout.createRow(rPannel);
this.addContent(layout);
Now I would like to update the name of a bank, but I dont know how....
Do you know any helpful examples or tutorials which could help me?
I would appreciate your valuable help.
Kind Regards
Glen