Skip to Content
0
Aug 03, 2014 at 07:51 AM

Get data from a sapui5 table......Urgent

566 Views

Hi All,

As I am new to sapui5 table and learning with examples, got stuck in one point.....

I created a table of two columns like this

var oModel = new sap.ui.model.odata.ODataModel("http://services.odata.org/V3/Northwind/Northwind.svc/");

sap.ui.getCore().setModel(oModel);

var oTable = new sap.ui.table.Table();

oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "ID"}),template: new sap.ui.commons.TextView({text: "{CustomerID}"})}));

oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "City"}),template: new sap.ui.commons.TextView({text: "{City}"})}));

oTable.bindRows("/Customers");

Now i wanted to get the details of one column(say ID) if it meets some condition of the other column.

Is there a way to meet this by managing the oTable???

Please help????