I have loaded the timer bean into my form and created a ‘start’ button’ and a stop button that do the right things.
Trouble is, when the form loads the bean starts the clock automatically. how can I stop the bean from starting until the button is pressed?
Am I missing something obvious here?
I tried to find an initialise method - but no luck
Al.
Al
Are you referring to the Schuduler bean? If so you can check if any Scheduler ‘jobs’ are running and remove them.
Following examples are from the ‘Move Sample’ options:
// Returns an array of current jobnames
plugins.scheduler.getCurrentJobNames()
// removes a job ‘myjob’ from the scheduler
plugins.scheduler.removeJob(‘myjob’)
Regards
Graham Greensall
Worxinfo Ltd
Or probably you are just speaking about the iClock bean…
Anyway you can just add a method to the onShow() or to the onLoad() property of your form. In file / solution settings menu you can also define an “on open method” that is fired when your application starts.
Hope this helps…