cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build Apps imageURL

rcaziraghi
Participant
0 Kudos
299

Hello all!

I'm trying to add an image to my object page application in SAP Build Apps, but it's not working correctly. The app queries an endpoint on an ABAP environment running on SAP BTP. The SAP Fiori preview page works fine with the image URL, showing the image correctly. I've achieved this by creating an association with an "image" entity, and a property called "imageURL" in the main entity has a URL pointing to the selected "image" entity.

The issue I'm having with SAP Build Apps is that the images don't show in the image list. I can list the objects, but the images won't appear. The request returns a 200 status, but the response contains a message: "Failed to load response data: No content available because this request was redirected".

I tried to expand the main entity to the images entity, but I have not found a way to do so.

Does anyone have any ideas about what I might be doing wrong?

Thank you in advance for your help!

Best regards,

Rafael

Dan_Wroblewski
Developer Advocate
Developer Advocate
Perhaps some screenshots and more details would help.
rcaziraghi
Participant
0 Kudos

Hello!

So this is how my object page looks like:

rcaziraghi_0-1722866906209.png


I have this image component that is pointing to a property in my entity. This property has the image URL (I have to use a formula because the type is incompatible), that points to the "/$value" endpoint in the backend (another associated image entity). Like I mentioned, this works for Fiori applications, but here I get this error in the successful (200) request response:

rcaziraghi_1-1722867007014.png

I can fetch this associated entity, but I just can't get the image. I've tried to download it using another logic (Download Files), but to no avail.

If you want me to try anything else or need any additional information, please let me know.

Best regards,
Rafael

Accepted Solutions (0)

Answers (1)

Answers (1)

Sankara1
Product and Topic Expert
Product and Topic Expert
Dear Rafael,

Thank you for reaching out to us. Please follow the link for an example of adding an image URL.

https://help.sap.com/docs/build-apps/service-guide/component-properties?locale=en-US&q=image%20url

https://help.sap.com/docs/build-apps/service-guide/full-screen-background?locale=en-US

Thanks, and please let us know if you're still struggling with troubleshooting.

rcaziraghi
Participant
0 Kudos

Hello Sankara,

Thank you for your reply. I've tried to insert the image using the properties you suggested, but without success. Would you happen to have an example I could look at?

Thank you again for your attention.

BR,
Rafael