on 2016 Dec 27 12:52 PM
Request clarification before answering.
Hey Ajit & Jay,
If you are running your application on the launchpad and having root problems:
Try this in your component.js onInit()
Basically we create a model to get resource root of the application when we want to display images
var oRootPath = jQuery.sap.getModulePath("com.kaya.app001"); // your resource root
var oImageModel = new sap.ui.model.json.JSONModel({
path : oRootPath,
});
this.setModel(oImageModel, "imageModel");
Change your image source according to this:
<Image src="{imageModel>/path}/test-resources/Icons/twitterIcon.png" />
Regards
Ugur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
56 | |
10 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.