?
Solved

Setting alarms - $alarm folder

Posted on 2004-10-22
6
Medium Priority
?
1,431 Views
Last Modified: 2013-12-18
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:

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"
Call note.Save(True,False)
Call note.PutInFolder("($Alarms)")


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?

thx
Jay
This is important and somewhat urgent but only prob is I only got so much points.
0
Comment
Question by:jdembare
  • 3
  • 2
6 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 12381137

Set the form to Appointment and invoke computewithform method to recalculate other fields too so that you don't have to fill whole form using the script...

I have seen that alarms doesn't honor the script generated docs.. why that far...they don't even work very well with repeat meetings ;-)

~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 12383636
The daemon is naldaemn.exe.  If this particular user can get standard alarms displayed but not yours, then it is your document that is the problem.  It is undocumented precisely how the alarm daemon decides what is a valid alarm, and what documentation there is does not necessarily hold true.  You realy have to experiement with the fields.
0
 

Author Comment

by:jdembare
ID: 12389368
Thanks guys, will try out ~Hemanth's idea. I did try it though before using the "Appointment" form only difference is that I didn't call computewithform to recalculate other fields. Maybe that might make a difference.

0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 

Author Comment

by:jdembare
ID: 12398526
Calling computewithform is return a false flag i.e it's not successfully computing. Im now not sure wat fields to set before calling computewithform. Any ideas?
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 1600 total points
ID: 12400594
Your CalendarDateTime is causing this error.. Try this

note.CalendarDateTime = CDat(SDT.DateOnly & " " & SDT.TimeOnly)

And set the Alarmoffset to 10 minutes before the event...

note.~$AlarmOffSet = -10

And now use computewithform.. and your alarm should be recognized
0
 

Author Comment

by:jdembare
ID: 12401010
Genius ~Hemanth, worked like a charm. Offset not really necessary but the cdat did the trick. Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question