Skip to Content
Former Member
Feb 07, 2017 at 10:08 AM

SAPUI5 getBinding() returns undefined



I'm an abap developer, but now i'm trying to build a simple application in SAPUI5 and I'm stuck with a Problem. I think the solution is quiet simple, but I can't figure it out.

I built the application using webIDE and a simple oData Service that provides me with data to fill a sap.m.table in a XML view. works quiet good.

But now I'm trying to set a filter on the data in the the table. In my view Controller I have the following code, first line works, I get a reference to my table, but the getBinding() method just Returns undefined and I can't figure out why.

Thanks in advance for your help.

regards Alex

var oTable = this.getView().byId("__table0");  
var oTableBinding = oTable.getBinding("items");
var filters = [];  filters.push(new sap.ui.model.Filter("ProjectNo", "EQ", "999"));