Skip to Content
0
Former Member
Feb 01, 2016 at 06:12 AM

Apply Image conditionally

20 Views

Need to apply image based on the condition. Can you please help me how to apply image conditionally.

new sap.ui.commons.Image({

src : ("{Products>Imagedata}" == "test") ? "./Images/test.png" : "./Images/NoTest.png",

height : "30px"

});