Application Development 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: 

display image on condition in WebDynpro component view

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

is it in SAP GUI or WebDynpro

Raja

0 Kudos

SAP GUI

0 Kudos

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