scheduler....

Has anyone already done this?..

I have an Activities table, with a scheduled start timestamp and status. My client has asked me to add pop-up reminders.

This seemed like it’d be pretty straightforward using the scheduler plugin, but I’m looking at the various parameters and feeling a bit overwhelmed.

I’m envisioning that I’ll need an onDataChange that will create a job whenever the scheduled timestamp, or reminder checkbox, or lead time are edited. I can handle all that. Once I have a time that I want a reminder, and a method to show that reminder, what’s the syntax to set it off?

Also, will a job run for any user, the current user, etc? I’d only want the assigned user to get the reminder…

I know this is a bit open-ended, but it just seems like I can’t be the first person to have done this in Servoy, and I could use a bit of a jump-start. :-D

Yes, I am doing this too:

I have just one scheduler that checks every minute by a search
It searches the todo’s and appointments that are overdated.

If the search is empty, nothing happens, If the search contains data, a small popup appears.

simple as that

So does that just run on the Server, or on every client?

Running every minute would seem like excessive overhead for every client to sit through, wouldn’t it?

always on the client!

It does not have any overhead!

OK, I can take that on faith for the moment… ;-)

So they don’t get a screen flicker, or a slowdown, or anything? If nothing’s found, nothing happens?

Would you have just a sample command to run a method once a minute? I’m having trouble following the sample in the docs. I end up with errors, but rather than fix one dumb mistake after another, if I had a good command, and could butcher it one command at a time… :-D