There are no secrets to success. It is the result of preparation, hard work, and learning from failure.

Tuesday 30 October 2018

Loading local resources in Launchpad

Click here and follow my SAP UI5/FIORI snippets and information Page
I have made example for loading local image in Launchpad,below I have given small snippet.This is generic snippet for loading local image.Go through it and please let me know in case of any issue/doubt.     
                                
var modulePath=$.sap.getModulePath("PurDemo", "/image/"),
                                                logoId=this.byId('logo');
                                                logoId.setSrc(modulePath+"logo.png");

PurDemo=your component name
image=your image’s folder name

If we load image by XML view ,It will not work in Launchpad.It will only work in local server.
<Image id="logotooltip="Logowidth="100pxheight="55pxsrc="image/logo.png"/>

No comments:

Post a Comment