getNotices (NotesCalendar - JavaScript)

Gets calendar notices associated with an entry.

Defined in

NotesCalendar

Syntax

getNotices() : java.util.Vector
Return value Description
java.util.Vector The notices, or null for no notices. Each vector element is of type NotesCalendarNotice.
Possible exception Value Text Description
NotesError.NOTES_ERR_NOTACCEPTED 4812 The invitation for this meeting has not yet been accepted You should locate the notice and accept, then try again.
NotesError.NOTES_ERR_IDNOTFOUND 4814 Identifier not found The recurrence identifier for the NotesCalendarEntry object does not identify an entry in the calendar, or the identifier for the NotesCalendarNotice object does not identify a notice in the calendar.

Examples

This button event displays a calendar notice if it exists.
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var maildb:NotesDatabase = dbdir.openMailDatabase();
var cal:NotesCalendar = session.getCalendar(maildb);
var dt1:NotesDateTime = session.createDateTime("Tomorrow 09");
var dt2:NotesDateTime = session.createDateTime("Tomorrow 10");
var entries:java.util.Vector = cal.getEntries(dt1, dt2, 0, 1);
if (entries.size() > 0) {
	var entry:NotesCalendarEntry = entries.firstElement();
	var notices:java.util.Vector = entry.getNotices();
	if (notices.size() > 0) {
		var notice:NotesCalendarNotice = notices.firstElement();
		requestScope.status = notice.read();
	}
} else {
	requestScope.status = "No entry at that time";
}

LotusScript® syntax

NotesCalendarEntry.GetNotices() As Variant

Java syntax

java.util.Vector NotesCalendarEntry.getNotices()