Skip to Content

unable to consume Image in sapui5

Jun 26, 2017 at 10:57 AM


avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers