Thanks Sakthivel. It works for Image but is it possible with icons too?. My requirement is, photo, employee id and name - all these 3 are repetitive and should be merged in a single column. I tried both getSrc and getIconURI for object header like in the below code. It does not seem to work. Is it because I have to use the object header? Object Identifier does not seem to have an icon/image property. Is there any other option for this requirement?
columns : [
new sap.m.Column({
header: new sap.m.Label({
text:"Image"
}),
mergeDuplicates : true,
mergeFunctionName: "getSrc"
}),
new sap.m.Column({
width : "2em",
header : new sap.m.Label({
text : "NAME"
}),
mergeDuplicates : true,
mergeFunctionName: "getIconURI"
}),
]});
oTable.bindItems("/approvalSummary", new sap.m.ColumnListItem({
cells : [
new sap.m.Image({
src : "{photo}"
}),
new sap.m.ObjectHeader({
icon: "{photo}",
title : "{name}",
intro: "{eId}"
}),