Skip to Content

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

How to do binding for sap.m.ObjectHeader control?

Hello,

I have json model with data structure a below :

{"Notification" : [ {

  "NotificationNo" : "10000128",

  "Desc" : "Wire broken down in Unit 551A",

  "StartDate" : "2015/06/24",

  "EndDate" : "2015/07/30",

  "Status" : "In Progress",

  "NotificationType" : true,

  "PUnitStatus" : "Error"

  }

  ]

  }

How do i do binding for sap.m.ObjectHeader ?

Please note that I am using jsview. I tried using binding property

but it is not working .

var oObjectHeader = new sap.m.ObjectHeader(

  "oh1", {

  binding : "/Notification/0",

  number : "{NotificationNo}",

  title : "{Desc}"

});

please help.

replied

Hey Ajinkya


How are you? When you're doing a property binding, you have to provide full path.


I have made few changes to your code, please check the working sample -


JS Bin - Collaborative JavaScript Debugging


Regards,

Sai Vellanki.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question