delegate (NotesCalendarNotice - JavaScript)

Delegates a meeting notice to a new attendee.

Defined in

NotesCalendarNotice

Syntax

delegate(commentstoorganizer:string, delegateto:string) : void

delegate(commentstoorganizer:string, delegateto:string, keepinformed:boolean) : void

Parameter Description
commentstoorganizer Comments regarding a meeting change.
delegateto Mail address of new meeting attendee.
keepinformed Specify true to continue to receive notices about the meeting.
Possible exception Value Text Description
NotesError.NOTES_ERR_UNSUPPORTEDACTION 4811 Unsupported action The method is attempting to apply an action that is not valid for the entry.
NotesError.NOTES_ERR_OVERWRITEDISALLOWED 4813 This action is not allowed since it would overwrite personal changes The action should be verified then reissued with the overwrite flag set.
NotesError.NOTES_ERR_IDNOTFOUND 4814 Identifier not found The identifier for the NotesCalendarNotice object does not identify a notice in the calendar.

Examples

This button event delegates a meeting notice.
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var maildb:NotesDatabase = dbdir.openMailDatabase();
var cal:NotesCalendar = session.getCalendar(maildb);
var unid:string = sessionScope.noticeunid;
var dt1:NotesDateTime = session.createDateTime("Tomorrow 12");
var dt2:NotesDateTime = session.createDateTime("Tomorrow 13");
var caln:NotesCalendarNotice = cal.getNoticeByUNID(unid);
caln.delegate("Delegating", "Roberta Person/Westford/IBM", true);
requestScope.status = "Calendar notice for UNID " + unid + " delegated\n";

LotusScript® syntax and examples

NotesCalendarNotice.Delegate(Byval comments As String, Byval delegateto As String, Optional keepinformed As Boolean)

Java syntax and examples

void NotesCalendarNotice.delegate(String comments, String delegateto)
void NotesCalendarNotice.delegate(String comments, String delegateto, boolean keepinformed)