on 08-11-2015 8:55 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
I have a similar requirement, but for column headers of a table. I have the following Model:
var otabledata = {
ColHeader: {
ColH1: "ColH1text",
ColH2: "ColH2text"
},
Values: [
{Col1: "test1" ,
Col2: "test2"
}
]
};
Using above model, I want to bind the ColHeader node to the column headers of the table. How can I do this?
Regards,
Shashi
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.