AutoSendNotices (NotesCalendar - JavaScript™)
Read-write. Indicates whether to automatically send information to participants when creating and updating meetings.
Defined in
NotesCalendarSyntax
getAutoSendNotices() : boolean
setAutoSendNotices(flag:boolean) : void
Legal value | Description |
---|---|
true |
(default) automatically sends information such as invitations and reschedules to participants |
false |
does not automatically send information to participants |
Examples
This button event creates a meeting calendar entry for today at 1600 UTC, with no notices being sent, and posts its UID to a sessionScope variable.try {
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var maildb:NotesDatabase = dbdir.openMailDatabase();
var cal:NotesCalendar = session.getCalendar(maildb);
var formatter = new java.text.SimpleDateFormat("yyyyMMdd");
var today:String = formatter.format(new java.util.Date());
var icale:String = "BEGIN:VCALENDAR\n" +
"BEGIN:VEVENT\n" +
"DTSTART:" + today + "T160000\n" +
"DTEND:" + today + "T170000\n" +
"ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN=\"Roberta Person/Westford/IBM\";\n" +
" RSVP=FALSE:mailto:roberta_person@us.ibm.com\n" +
"ATTENDEE;ROLE=REQ-PARTICIPANT\n" +
" ;CN=\"Doc Test/Bedford/IBM\";RSVP=TRUE:mailto:doctest@us.ibm.com\n" +
"SUMMARY:Sample Meeting\n" +
"ORGANIZER;CN=\"Roberta Person/Westford/IBM\"\n" +
" :mailto:roberta_person@us.ibm.com\n" +
"END:VEVENT\n" +
"END:VCALENDAR\n";
cal.setAutoSendNotices(false);
var calentry:NotesCalendarEntry = cal.createEntry(icale);
requestScope.status = "Create succeeded. UID = " + calentry.getUID();
sessionScope.uid = calentry.getUID();
} catch(e) {
requestScope.status = e.message;
}
LotusScript® syntax and examples
NotesCalendar.AutoSendNotices As Boolean
This
agent creates a meeting calendar entry for today at 1600 UTC, with
no notices being sent, and posts its UID to an environment variable.Sub Initialize
Dim session As New NotesSession
Dim maildb As New NotesDatabase("", "")
Dim cal As NotesCalendar
Dim calentry As NotesCalendarEntry
Dim icale As String
Dim tday As String
REM Get calendar for current user and create entry
Call maildb.Openmail()
Set cal = session.getCalendar(maildb)
tday = Format(Today, "yyyymmdd")
icale = |BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:| & tday & |T160000Z
DTEND:| & tday & |T170000Z
ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN="Roberta Person/Westford/IBM";
RSVP=FALSE:mailto:roberta_person@us.ibm.com
ATTENDEE;ROLE=REQ-PARTICIPANT
;CN="Doc Test/Bedford/IBM";RSVP=TRUE:mailto:doctest@us.ibm.com
SUMMARY:Sample Meeting
ORGANIZER;CN="Roberta Person/Westford/IBM"
:mailto:roberta_person@us.ibm.com
END:VEVENT
END:VCALENDAR|
cal.Autosendnotices = false
Set calentry = cal.Createentry(icale)
Call session.Setenvironmentvar("currentuid", calentry.Uid)
MessageBox "UID = " & calentry.Uid,, "Created calendar entry"
End Sub
Java™ syntax and examples
boolean NotesCalendar.getAutoSendNotices()
void NotesCalendar.setAutoSendNotices(boolean flag)
This
agent creates a meeting calendar entry for today at 1600 UTC, with
no notices being sent, and posts its UID to an environment variable.import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
DbDirectory dbdir = session.getDbDirectory("");
Database maildb = dbdir.openMailDatabase();
NotesCalendar cal = session.getCalendar(maildb);
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyyMMdd");
String today = formatter.format(new java.util.Date());
String icale = "BEGIN:VCALENDAR\n" +
"BEGIN:VEVENT\n" +
"DTSTART:" + today + "T160000Z\n" +
"DTEND:" + today + "T170000Z\n" +
"ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN=\"Roberta Person/Westford/IBM\";\n" +
" RSVP=FALSE:mailto:roberta_person@us.ibm.com\n" +
"ATTENDEE;ROLE=REQ-PARTICIPANT\n" +
" ;CN=\"Doc Test/Bedford/IBM\";RSVP=TRUE:mailto:doctest@us.ibm.com\n" +
"SUMMARY:Sample Meeting\n" +
"ORGANIZER;CN=\"Roberta Person/Westford/IBM\"\n" +
" :mailto:roberta_person@us.ibm.com\n" +
"END:VEVENT\n" +
"END:VCALENDAR\n";
cal.setAutoSendNotices(false);
NotesCalendarEntry calentry = cal.createEntry(icale);
session.setEnvironmentVar("currentuid", calentry.getUID());
} catch(Exception e) {
e.printStackTrace();
}
}
}