Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

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

$
0
0

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????


Viewing all articles
Browse latest Browse all 8150

Trending Articles