plugins.scheduler question

Questions, tips and tricks and techniques for scripting in Servoy

plugins.scheduler question

Postby kurtbleicken » Thu Jan 12, 2012 6:02 pm

This fires with an onShow method. But when it runs it immediately triggers the globals.logout() not waiting for the 10 minutes. What am I doing wrong? K

var startDate = new Date();
var endDate = new Date(startDate.getTime()+600000);
//globals.logout is just application.exit()
Kurt Bleicken
Servoy 7
Executive Director, onRamp for nonprofits
Founder, AgentSphere, LLC
Posts: 100
Joined: Mon Feb 12, 2007 11:36 pm

Re: plugins.scheduler question

Postby Harjo » Fri Jan 13, 2012 10:27 am

By putting () after globals.logout, you are firing it directly!!

so skip the () part
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Posts: 4319
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Return to Methods

Who is online

Users browsing this forum: No registered users and 3 guests