Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

display image on condition in WebDynpro component view

Former Member
0 Likes
515

Hi all,

I'm hoping someone can explain to me step by step how to do the following:

In my WebDynpro view, I have a context which is basicaly information coming from a webservice. Among the things that I receive from that input I get the weather, as a string (partly cloudy, sunny, overcast, etc).

I would like to display a picture which would depend on that output (if the string is "sunny" then I want to display the sun image, if it's "partly cloudy" then I want to display the clouds image, etc).

Thank a lot

Micol

Hi all,

I'm hoping someone can explain to me step by step how to do the following:

In my WebDynpro view, I have a context which is basicaly information coming from a webservice. Among the things that I receive from that input I get the weather, as a string (partly cloudy, sunny, overcast, etc).

I would like to display a picture which would depend on that output (if the string is "sunny" then I want to display the sun image, if it's "partly cloudy" then I want to display the clouds image, etc).

Thank a lot

Micol

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
486

is it in SAP GUI or WebDynpro

Raja

Read only

0 Likes
486

SAP GUI

Read only

0 Likes
486

to show images in SAPGUI you have to use cl_gui_picture class.

check out this demo program

SAP_PICTURE_DEMO

the pictures should be loaded thru SMW0 transaction

Regards

Raja