cancel
Showing results for 
Search instead for 
Did you mean: 

how to display image in the view

Former Member
0 Kudos

hi friends

I created one small webdynpro application it contains one default view.

Now I want display one image on that view.(image is located in my local machine)

i am new to webdynpro

help me out.

thanks

ram.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

hi,

->Add the Image UI element in the view..

. set the source property

->open the navigator

. paste the image under src->mimes->components->ur application

->goto webdynpro explorer

->the image will be reflect,whenever u deploy ur application

Regards

vineela

Former Member
0 Kudos

Hi,

thre can be 2 scenerios

1. u wnna upload image from system..

in this u can upload new image evrytime.

2. u want to upload single image n u dnt hav to chnage later on..it wud b like default image.

for first one u can go through d doc:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e599cc-2862-2b10-54a9-dcf1376b52d7]

for second scenerio u can copy that image file into ur mimes folder of packeges of ur project using navigator.

later on go to source property of image UI element n give ur image file's name like " abc.jpg"

hpe it will solve ur problem

Regards

Khushboo

Former Member
0 Kudos

Hi,

thre can be 2 scenerios

1. u wnna upload image from system..

in this u can upload new image evrytime.

2. u want to upload single image n u dnt hav to chnage later on..it wud b like default image.

for first one u can go through d link tht is given above..

for second scenerio u can copy that image file into ur mimes folder of packeges of ur project using navigator.

later on go to properties of image UI element n give ur image file's name like " abc.jpg"

hpe it will solve ur problem

Regards

Khushboo

snehal_kendre
Active Contributor
0 Kudos

HI,

you want display one image on that view.(image is located in my local machine).

That means your application should be able to display any image file located at any local machine where it is running?

then the apply solution given above.

But if it means you want to display an image which is right now ot your local machine,

then just copy that image into mimes folder.

and assgin it as source to your image UI element.

Former Member
0 Kudos

Hi,

add Image UI Element and set the following properties

· alt

Determines an alternative text that is displayed when the graphic cannot be opened or found.

· source

Determines the Web address (URL) of the graphic through which the UI element receives the data. If you store the image file in your Web Dynpro project under ® src ® mimes ®Components ® , you only have to specify the file name without a path.

Regards,

ramesh

Former Member
0 Kudos

hi,

refre the following link.

http://help.sap.com/saphelp_nw70/helpdata/EN/f3/1a61a9dc7f2e4199458e964e76b4ba/frameset.htm

Upload Image file from system in Web dynpro view

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e599cc-2862-2b10-54a9-dcf1376b...

Dynamic images in Web Dynpro for Java applications

Thanks

Abhilasha

Edited by: Abhilasha Dahare on Sep 17, 2008 6:24 AM

Former Member
0 Kudos