ApeWare
December 15, 2005, 10:04pm
1
We are running Servoy on Windows XP. I have written the following test method:
plugins.scheduler.addCronJob('Test','0 0/2 0 ? * *',testDialog);
I have a global method named “testDialog” containing the following code
plugins.dialogs.showInfoDialog( Scheduler, "Scheduler fired correctly", 'OK')
When I run my “testSchedule” method I get the following error:
ReferenceError: “testDialog” is not defined. (testSchedule; line 2)
ACTIVITY_1_activity_L.testSchedule
I need to figure out what I am doing wrong. Any help would be appreciated.
ROCLASI
December 15, 2005, 10:46pm
2
You forgot the ‘globals.’ part.
So the code should be:
plugins.scheduler.addCronJob('Test','0 0/2 0 ? * *',globals.testDialog);
ApeWare
December 15, 2005, 10:52pm
3
I tried it that way as well and still got the error. I will try it again, I just wanted to make sure I was not making any GROSS errors
ApeWare
December 21, 2005, 8:39pm
4
Still having problems getting this seemingly simple task to work. Does anyone have any suggestions? Is there any system requirements or settings necessary to make this work?