cancel
Showing results for 
Search instead for 
Did you mean: 

Image is not loading while runnig from Launchpad

Former Member
0 Kudos

Hi All,

             I am facing issue with loading image in Fiori application. I have added my MIMEs objects in separate folder of webcontent and deployed in Gateway system through /UI5/UI5_REPOSITORY_LOAD program.

Now the problem is, If am running the app as standalone(From SE80/SICF), app showing the images properly.

While running through the Launchpad, only the images are not loading and am getting the error message as

GET http://XXX:Port/sap/bc/ui5_ui5/ui2/ushell/shells/abap/image/TML@2.png 404 (NOT FOUND)

FYI.,

(LPD_CUST Setting: SAPUI5.Component=sap.ui.demo.myFiori)

Any suggestion on the same pls...

Regards,

-Mahi

Accepted Solutions (1)

Accepted Solutions (1)

Have you found any solution yet ? I am facing same issue .

Former Member
0 Kudos

Hi.,

Try like this.,

var Img_Url = $.sap.getModulePath("<Componentname>", "<image folder path>");

this.getView().byId("<id>").setIcon(Img_Url+"<Image name>");

Img_Url+"<Image name>" use it as image src

sample code will be like this

var Img_Url = $.sap.getModulePath("Travel.Create", "/view/image/");

this.getView().byId("idIcon").setIcon(Img_Url+"Image.png");

-Mahi

Thanks for your answer. I already solved it.

0 Kudos

Gautami, did you solve it with another way?

Answers (0)