cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a logo dynamically in Image Ui element from MIME repository

0 Kudos

Dear Team,

I have added an image in MIME Repository. I want to add that image into the Image Ui element in my component.

What has to be passed to the source? Is that a URL or path of the file in MIME?

If yes, How to get the path? Please give your valuable suggestions.

Awaiting your kind response.

Thanks,

Nalla B.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Is your issue resolved?.If not, revert with your query.

Thanks

KH

0 Kudos

Hi katrice,

Is is solved. Thanks for your feed back.

It is solved once I get the MIME image path from MIME repository.

Also remember the image should be under the below path to show it in the application

/SAP/PUBLIC/bc/ur/LOGO.jpg

It solved the issue.

Thanks.,

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create one attribute of type string and bind that attribute to property : source of that image.

If you know the path where you have imported your required image into MIME repository.Just set the attribute with that image path.

Hope this will help you.

Thanks

KH

former_member222068
Active Participant
0 Kudos

Hi Nalla,

You have to pass MIME name eg: Image.jpg has to be passed to the source.

If you want to set image based on the condition, then create an attribute and bind to the source property and set the name of the image.

Thanks & Regards,

Sankar Gelivi

0 Kudos

Hi Sankar,

I have done this already, But the requirement is we have the logo in 10 screens if the logo changes in future we need to go to all 10 screens and upload the mime image and change the logic.

This is not accepted by the client. So we are trying to upload the image in MIME Repository and trying to access it with the path, But I am not able to get the exact path of it.

I am using the URL path as below, I am notable to display the MIME Image

I Tried both the options, but still not displayed

* ls_logo_url-logo = 'http://servername.domainname/sap/public/logo.bmp'.



ls_logo_url-logo = '/sap/public/logo_320.jpg'.


Please let me know how to get the path of the mime object


Thanks,

Nalla B.

former_member222068
Active Participant
0 Kudos

Hi Nalla B,

Can you try this link:

Thanks & Regards,

Sankar Gelivi