cancel
Showing results for 
Search instead for 
Did you mean: 

Add Image dynamically from a Webdynpro SCREEN

Former Member
0 Kudos

Hi Experts,

I have this screen with this default image:

I would like to know, how to Upload (from the desktop) and Display an image when clicking on "ADD PHOTO" button?

Have you code a part of code?

Thank you very much.

Rachid.

Accepted Solutions (1)

Accepted Solutions (1)

former_member191044
Active Contributor
0 Kudos

Hi Rachid,

first of all you will need a fileupload. Take a look at this document:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4...

What you will get is an IWDResource. On this resource you get the URL with the "getUrl()" method.

Then you have to set the URL to your image element as source.

Hope this helps,

Regards Tobias

Former Member
0 Kudos

Ooops...

I am in the wrong place. My need concerns Webdynpro for ABAP.

Sorry.

Rachid.

Answers (0)