cancel
Showing results for 
Search instead for 
Did you mean: 

Set of images display automatically

Former Member
0 Kudos

Hi,

I have set of images and i need to display one by one automatically(I don't want to click on Previous or Next buttons). How can i do this.

Regards,

N B Hrudaya Raju

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

->For this you have to use Timed Trigger UI Element.

-> Add all the images which you want to display in the context( type String).

->Change the property Delay of Timed Trigger UI Element to 5 , 10 etc.

This will display all your images like a slide show.

Thanx.

Former Member
0 Kudos

Hi,

Create a context attribute of type string lets say Img

Use the timed trigger UI element.

In the action handler onAction of TimedTrigger UI element populate the context attribute with different images

Properties for the timed Trigger UI

delay 5 will change the images based on the delay

Place an Image Ui element bind the source property to the context attribute.


//@@end
//This is the onaction of timed trigger
  public void onActionLoadImage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onActionLoadImage(ServerEvent)

     // based on your condition set different images 
     // Store the images in mimes and then put their path in a arraylist use random function to get one index.
     // Example to set one image.
     wdContext.currentContextElement().setImg("~sapicons/s_b_aexp.gif");

    //@@end
  }

Regards

Ayyapparaj