cancel
Showing results for 
Search instead for 
Did you mean: 

Dealing with images in web dynpro

Former Member
0 Kudos

Hi experts,

I would like to develop an application , in which if we want to display images randomly like one by one on the same screen.Is there any way to achieve this functionality.

Thank you.

Regards,

Nagendra

Accepted Solutions (1)

Accepted Solutions (1)

former_member197475
Active Contributor
0 Kudos

Hi Nagendra,

You can add image in WDA dynamically. Check the below thread FYR.

But what exactly you are looking for??

I would like to develop an application , in which if we want to display images randomly like one by one on the same screen.Is there any way to achieve this functionality.

Are you trying to achieve this functionality on any event action??

BR,

RAM.

Former Member
0 Kudos

Hi Ram,

I just want play the images on the application randomly irrespective of any event

Thank you,

Regards,

Nagendra

Former Member
0 Kudos

Any solution Please

Regards,

Nagendra

ramakrishnappa
Active Contributor
0 Kudos

Hi,

You can make use of TimedTrigger UI Element and set the delay as you required and on every trigger, try to change the image into the view.( So the event automatically triggered by TimedTrigger and your images keep changing )

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thank you so much for the answer, you are always been so helpful.Could you please provide me any sample code.

Regards,

Nagendra

Gowtham
Contributor
0 Kudos

Hi Nagendra,

You can merge all images into single GIF Image using Photoshop or some other tool, upload the GIF into WDA using MIME , it will be capable of showing multiple images again and again without any events.

- Gowtham

Former Member
0 Kudos

Hi Gowtham,

Thank you I will try to implement this.

Regards,

Nagendra

ramakrishnappa
Active Contributor
0 Kudos

Hi Nagendra,

How are planning to get the images into webdynpro ? are those uploaded into mime repository and respective urls are available  to fetch and bind to webdynpro image element?

May be its helpful if you go through the below document

In the above document its been demonstrated to put image into cache and then use it in image ui element.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

I'm planning to use MIME repository.

Thank you,

Regards,

Nagendra

ramakrishnappa
Active Contributor
0 Kudos

Hi,

You can achieve your requirement as below

  • Create a TimedTriggerUI element on view and create an event for it, also set delay viz 1 sec
  • Create an context attribute IMAGE_SOURCE of type string
  • Create an image ui element on view and bind the property "Image source" to the context attribute IMAGE_SOURCE
  • Now on event handler of timed trigger, set the mime repository url/path as below

              

" Each time prepare the path of image

                    example:

                    data lv_path type string.

                         lv_path = 'hello.jpg'.

               " get the context element reference

                    lo_context_element = wd_context->get_element( ).

               " set the path of image source to attribute

               lo_context_element->set_attribute(

                              name = 'IMAGE_SOURCE'

                              value = lv_path ).

Hope this helps you.

Regards,

Rama

Answers (0)