Binding a value to numeric content of a tile
I have created a generic tile with numeric content. Now for the value property i should get value from OData model..
i wrote the following code..but it is displaying value as '0'..
var oModel = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZAVGS_SRV_01/", true);
var ocore = sap.ui.getCore();
var t11 = ocore.byId("avg");
Here, I want to get value of field avg from table..and set that to numeric content of tile..
Can anybody help ??