Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Binding a value to numeric content of a tile

Hi,

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);

    this.getView().setModel(oModel);

    var ocore = sap.ui.getCore();

    var t11 = ocore.byId("avg");

  

    t11.bindProperty("value","/LtAvgsSet/avg");

Here, I want to get value of field avg from table..and set that to numeric content of tile..

Can anybody help ??

Former Member
Former Member replied

I solved it using bindElement method..

bulls.bindProperty("value", "SchImp");

         bulls.bindElement("/LtAvgsSet/0");

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question