tentativelyAccept (NotesCalendarEntry - JavaScript)

Tentatively accepts a meeting entry or entries.

Defined in

NotesCalendarEntry

Syntax

tentativelyAccept(comments:string) : void

tentativelyAccept(comments:string, scope:int, recurid:string) : void

Parameter Description
comments Comments regarding a meeting change.
scope The scope of a recurring operation:
  • CS_RANGE_REPEAT_ALL (1)
  • CS_RANGE_REPEAT_CURRENT (0)
  • CS_RANGE_REPEAT_FUTURE (3), inclusive
  • CS_RANGE_REPEAT_PREV (2), inclusive
recurid The recurrence identifier (RECURRENCE-ID item) for a recurring calendar event. The format of a recurrence identifier is a time in UTC format, for example, 20120913T160000Z.
Possible exception Value Text Description
NotesError.NOTES_ERR_RECURID_NOTFOUND 4808 Recurrence-ID not found The recurrence identifier for the NotesCalendarEntry object is not valid.
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 scope and recurid are missing for a recurring entry.

Usage

This method deals with meeting entries, not notices.

Examples

This button event tentatively accepts a meeting invitation.
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();
	entry.tentativelyAccept("Maybe");
	requestScope.status = "Tentatively accepted";
} else {
	requestScope.status = "No entry at that time";
}

} catch(e) {
	requestScope.status = e;
}

LotusScript® syntax

NotesCalendarEntry.TentativelyAccept(Byval comments As String, Optional scope as Integer, Optional Byval recurid As String)

Java syntax

void NotesCalendarEntry.tentativelyAccept(String comments)
void NotesCalendarEntry.tentativelyAccept(String comments, int scope, String recurid)