Subject: ? for Stan Rogers/Bill Ernst
I’m not Stan or Bill either, but I have created documents in calendars before, albeit not from notes.The code below is the lotus script I used to create an appointment. Anything with a “doc.” is a field on the appointment - maybe you need to set some of these to get your calendar entries to appear properly?
doc.Subject="Reminder - please call " & thisDoc.comname1(0)
doc.ExcludeFromView=“D” 'ensures it doesn’t appear in drafts view
doc.RemoveItem(“$AlarmOffset”)
Set dateitem = thisDoc.GetFirstItem(“callback”)
Set timeitem = thisDoc.GetFirstItem(“calltime”)
Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & "
" &
timeitem.DateTimeValue.TimeOnly)
Call doc.ReplaceItemValue(“$AlarmTime”, AlarmTime.LSLocalTime)
Call doc.ReplaceItemValue(“$NoPurge”, AlarmTime.LSLocalTime)
Call doc.ReplaceItemValue(“$AlarmDescription” , doc.Subject)
doc.StartDateTime=AlarmTime.LSLocalTime
doc.ReminderTime=AlarmTime.LSLocalTime
doc.EndDateTime=AlarmTime.LSLocalTime
doc.CalendarDateTime=AlarmTime.LSLocalTime
doc.BookFreeTime=“1”
doc.CHAIR=ns.UserName
doc.ORGDONTDOUBLEBOOK=“”
doc.ORGTABLE=“C0”
doc.PRINCIPAL=ns.UserName
doc.tmpApptFlags=“”
Call doc.ReplaceItemValue(“_ViewIcon” , 10)
Call doc.ReplaceItemValue(“$Alarm” , 1)
Call doc.ReplaceItemValue(“$BusyPriority” , “2”)
Call doc.ReplaceItemValue(“$PublicAccess” , “1”)
Call doc.ReplaceItemValue(“$BusyName” , ns.UserName)
Call doc.ReplaceItemValue(“$PrevBusyName” , ns.UserName)
admittedly, this was used a long time ago (probably notes4) so may not be relevant anymore. As for creating entries in other peoples’ calendars - make sure that the notes ID access is using has sufficient access on the ACL of the users in question. See your notes admins for help on this one if you think that this may not be the case.
Hope that helps
Ben