Skip to Content
author's profile photo Former Member
Former Member

unable to consume Image in sapui5

Hi All, We have created ODATA services to get the Image from the ECC system. OData service is working fine. we have crated on UI5 application. in component.js file we have initialized the model

Component.js Code

var sServiceUrl = 'xxx/xxx/xxx.svc';
var oModel = new sap.ui.model.odata.ODataModel (sServiceUrl, true);
this.setModel (oModel,"oModel");

In Main view we have used Image Element and try to bind the Entity set in SRC property.

unfortunately model is not calling that entity set. we have tried to set the model in view controller init, beforerenderning and afterrendering but sill no luck


Thanks in advance.


Meghal Shah

Add comment
10|10000 characters needed characters exceeded

0 Answers