on 02-16-2016 4:03 AM
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
Have you found any solution yet ? I am facing same issue .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Gautami, did you solve it with another way?
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.