Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: mergeDuplicates for images/icons in sap.m.table

$
0
0

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}"

}),


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>