SAP Knowledge Base Article - Public

2627940 - Image is Not Displayed in Custom EC


You have designed a Custom EC(Embedded Component) in UI Designer and is trying to fill one of the fields with an image from web.
As value for the image you are passing an URL you retrieved from a Web Service but this is not working.


SAP Cloud Applications Studio - all its versions
SAP Hybris Cloud for Customer - all its versions
SAP Business ByDesign - all its versions

Reproducing the Issue

You have added an image as attachment in a Campaign, for example, and you are using the standard webservice QueryCampaignIn to retrieve the path of this image in the server.
For that you are taking the information from tag <FileContentURI>.

On UI Designer:

1. You open your Custom EC and add a field ABC
2. You set the Display Type of this field as Image
3. You use the information from tag <FileContentURI> to fill source information
4. The image is not displayed in the UI
5. If you use any Public Image path from the internet it works just fine


The image url specified in the attachment has shared memory (Shm) attached to it. This value keeps on changing every time you are in a new UI session.

Hence the image is not accessible if you provide a static value like that.

Also, since this image is supposed to come from SAP server, it is not accessible.
The web service sends a valid url for real time display purpose. It is only valid for one session.


To use the image in the image control in the embedded component, you have to make the image available via a public url.
Then use that url in that image source property.


EC; URI; Image; SDK; , KBA , AP-RC-UIF-DT , UI Framework Designtime , How To


SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions