Hello. I have a single timer defined as global variable. I start this timer (3 seconds, "false" parameter so it's a one-off) at the bottom of my onUpdate function within the View.
My call-back function stops the timer, then requests the View to update. When the select button is pressed, I stop the timer and request an update. I stop the timer in the onHide() function and also when the cancel button is pressed (to be sure).
This works, however, I got a CIQ error on one occasion. The log file said to "Too many timers".
Is there a better way to update a view every x seconds? Thanks in advance.
EDIT: I just added a timer.stop() at the beginning of the onUpdate function.