on 07-11-2013 4:10 PM
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
Hello Glen,
You can refer to the following blog post, thought it talks about HANA to start with but at the end it is all about consuming the odata service which is exposed by netweaver gateway using UI5
And also the best place for SCN Community which for SAP UI5 is :
http://scn.sap.com/community/developer-center/front-end
Regards,
Srinivas Divakarla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.