I would like to add a reminder system to my application. I have scoured the documentation and Message Board for references and I have not found any. I have found many discussions on building and integrating to calendar applications including a nice add-in by Jerry B. But these don't seem to meet my need of incorporating an Outlook style reminder system into A5. So I am starting this thread in hope of generating some dialogue on the development of an A5 based reminder system.
Here are my current requirements for the system:
* Multi-User Support - system would distinguish between reminders set up by different users in a multi-user application.
* Once a reminder is created and scheduled for a future date and time the reminder system will pop-up a window on top of ALL OTHER open windows displaying the reminder and allowing the user to dismiss it, snooze it or reschedule it.
Those are the very basic needs. Most of this seems straight forward. Script_Schedule() could be used to trigger the pop-up of reminders and XDialogue could be used to deal with the pop-ups. However the part of this that is most intriguing and important to me (at least) is efficiently triggering the reminders. Here are some possible strategies:
* Schedule a script to run every 5 minutes that would query a table of reminders for reminders that belong to the current user and pop-up a window for any that appear in the next 5 minutes. This seems really inefficient to me and would generate a lot of overhead and network traffic.
* As each reminder is added schedule one of the ten script_schedule() timers. This seems pretty efficient. There would need to be a script that would pre-load the timers when the application initially loaded and also some really interesting script work that would manage the timers as new reminders were added, dismissed, snoozed and rescheduled.
I sure hope this elicits some suggestions from the community as I could use some ideas!
CP
Here are my current requirements for the system:
* Multi-User Support - system would distinguish between reminders set up by different users in a multi-user application.
* Once a reminder is created and scheduled for a future date and time the reminder system will pop-up a window on top of ALL OTHER open windows displaying the reminder and allowing the user to dismiss it, snooze it or reschedule it.
Those are the very basic needs. Most of this seems straight forward. Script_Schedule() could be used to trigger the pop-up of reminders and XDialogue could be used to deal with the pop-ups. However the part of this that is most intriguing and important to me (at least) is efficiently triggering the reminders. Here are some possible strategies:
* Schedule a script to run every 5 minutes that would query a table of reminders for reminders that belong to the current user and pop-up a window for any that appear in the next 5 minutes. This seems really inefficient to me and would generate a lot of overhead and network traffic.
* As each reminder is added schedule one of the ten script_schedule() timers. This seems pretty efficient. There would need to be a script that would pre-load the timers when the application initially loaded and also some really interesting script work that would manage the timers as new reminders were added, dismissed, snoozed and rescheduled.
I sure hope this elicits some suggestions from the community as I could use some ideas!
CP
Comment