GitHub - ipravir_oDataTest_ oDataTest

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

13/01/22 13.

22 GitHub - ipravir/oDataTest: oDataTest

ipravir / oDataTest Public

oDataTest

0 stars 0 forks

Star Notifications

Code Issues Pull requests Actions Projects Wiki Security Insights

master Go to file

ipravir … on 6 Apr 2016

View code

README.md

var vSer =
"https://s12hanaxs.hanatrial.ondemand.com/p901189trial/hihana/odatatest/services.xsod

var oModel = new sap.ui.model.odata.ODataModel(vSer, true);


var oTable = new sap.ui.table.Table("Test", {
visibleRowCount: 5
});
oTable.setTitle("Test Details");
var testID = new sap.ui.table.Column({
label: new sap.ui.commons.Label({
text: "ID"
}),
template: new sap.ui.commons.TextView().bindProperty("text",
"ID"),
width: "100%"
});
oTable.addColumn(testID);
var testName = new sap.ui.table.Column({
label: new sap.ui.commons.Label({
text: "NAME"
}),
template: new sap.ui.commons.TextView().bindProperty("text",
"NAME"),
width: "100%"
});
oTable.addColumn(testName);
oTable.setModel(oModel);

https://github.com/ipravir/oDataTest 1/2
13/01/22 13.22 GitHub - ipravir/oDataTest: oDataTest

oTable.bindRows("/INFOR");

var oPage = new sap.m.Page({


title: "{i18n>title}",
content: [oTable]
});

var app = new sap.m.App("myApp", {


initialPage: "oPage"
});
app.addPage(oPage);
return app;

Releases

No releases published

Packages

No packages published

https://github.com/ipravir/oDataTest 2/2

You might also like