cancel
Showing results for 
Search instead for 
Did you mean: 

how to load image

Former Member
0 Kudos

tell how we can load image in webdynpro...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First Keep your image in Sample.jpg in c:\program files\<installation directory>\src\mimes\components\<ur component name>\Sample.jpg

U can display .JPG,.BMP,.GIF

1)Insert Image UI element

2)create an attribute IMAGE and set calculated=True in attribute properties

3)It generate two methods getImage() and setImage() methods

4)Bind the image attribute to image UI element

5)write the following coding in

getImage()

{

return "sample.jpg"

}

6)u have to specify the Image name correctly if it is in uppercase or lowercase

<b>Otherwise other method,</b>

Insert Image UI element then click image properties---->Source=Sample.jpg

Directly u type the image name Sample.jpg in that source and press Enter,automatically it will bind with tickmark. Then deploy it works...

Regards,

Suresh.T

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shant..

Check these links..

<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/kmc/gettinganimagefromKMDocumentstobeusedinWeb+Dynpro&">Loading IMAGE</a>

Urs GS

Former Member
0 Kudos

Hi,

Image ui is there to load images

Firts Copy the image to Project\src\mimes\Components\package\Image.jpg

Then mention the filename Image.jpg in Source of Image Ui

Regards

Fahad Hamsa