I want to implement a functionality for setting reminders/alerts in an application. So what I am theoretically I thinking of asking the user the usual questions, when to kick off the alarm, whether send an email etc within the application. I then, through code, create an alert and place it in the $alarms folder of that user's mailfile. So I tried a simple test setting all the special alarm fields and putting in the $alarms folder. If I open the $alarms folder, I can see the alert entry. Problem is it's not kicking off and I am not sure wat I am missing. If set an alert via the usual calendar approach or the "Follow Up" functionality in 6.5, I can see the entry and it does get kicked off. What am I missing? Parts of my code are below and it's a simple test code:
dim note as notesdocument
Dim SDT As NotesDateTime
Dim EDT As NotesDateTime
< set objects here datetimes, dbs etc>
note.~$Alarm = 1
note.~$AlarmDescription = "Need to followup on the meeting!!!"
note.~$AlarmUnit = "M"
note.~$AlarmTime = SDT.DateOnly & " " & SDT.TimeOnly
note.~$AlarmOffSet = 0
note.StartTimeZone = SDT.TimeZone
note.CalendarDateTime = SDT.DateOnly & " " & SDT.TimeOnly
note.StartDate = SDT.DateOnly
note.StartTime = SDT.TimeOnly
note.StartDateTime = SDT.DateOnly & " " & SDT.TimeOnly
note.EndDate = EDT.DateOnly
note.EndTime = EDT.TimeOnly
note.EndDateTime = EDT.DateOnly & " " & EDT.TimeOnly
note.EndTimeZone = EDT.TimeZone
note.Alarms = "1"
Does the datetime formats and/or timezones critical here? Or perhaps what is the deamon that Notes run to process these entries in the $alarms folder? Can one checkout this deamon/agent?
This is important and somewhat urgent but only prob is I only got so much points.