Image changing in a certain time interval

Hi All,

I have table containing 100 Pictures in the database. I want to display all the pictures in 20 sec time interval. First then 20 sec gap then second and like wise.

Plaese specify if you guys have any idea.

Thanks
DP

Hi DP,

You can do this with the scheduler plugin that comes with Servoy.
There are 2 job functions but you can simply use the addJob function since you only want an interval.
If you want to fire it at specific times then use the addCronJob function.

Hope this helps.

Hi DP,

You could also use the ‘application.sleep()’ function and wrap it inside a loop

The argument takes milliseconds so ‘sleep(20000)’ is your 20 sec gap

Cheers
Harry

Hi DP

Solution really depends on what the application is doing:

You could also use the 'application.sleep()' function and wrap it inside a loop 

This will be the only ‘action’ on the Servoy system so you will not be able to click buttons etc - be sure to have a way to exit :)

A Cron job will wait until the curent Method has completed before firing and will then hand control back - so this may be better if Users are interacting with the system in addition to looking at the pictures.

Graham Greensall
Worxinfo Ltd