cancel
Showing results for 
Search instead for 
Did you mean: 

How can I deploy image to Launchpad ?

dexterpark
Explorer
0 Kudos
195

Hello,

I'm student who is atteding sap academy, and learning abap/fiori.

I'm having trouble deploying image in SAP BAS to Fiori Launchpad..

I can check image when I check on SAP BAS(run configuration) - TEST as below.

but, refer to below image, as you can see, it's unavailable to see image on it.

So I want to know how can I show below image on Launchpad..

Accepted Solutions (0)

Answers (2)

Answers (2)

sharanatsap
Explorer
0 Kudos

Hi Park,

Just have a formatter to pick the right path

<Image src="{
  value: 'your/app/namespace/img/header.png',
  formatter: 'sap.ui.require.toUrl'
}" />
david_bizer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

the path you provided can't be accessed from the launchpad. You may try if this works (in your controller for example):

//assuming this is your image path (first part is your namespace)

let sPath = sap.ui.require.toUrl("sync/zc61sdoutbound1/img/header.png");

// required JSONModel module definition at controller beginning
let oModel = new JSONModel({
headerImgPath : sPath
});
this.getView().setModel(oModel, "imgModel");

//in your xml fragment
src="{imgModel>/headerImgPath}"