counter (NotesCalendarNotice - JavaScript)

Counters a meeting notice.

Defined in

NotesCalendarNotice

Syntax

counter(comments:string, start:NotesDateTime, end:NotesDateTime) : void
Parameter Description
comments Comments regarding a meeting change.
start The start time of the counter proposal.
end The end time of the counter proposal. An exception occurs if the end time is not greater than the start time.
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 counters 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.counter("Can you move it up?", dt1, dt2, true);
requestScope.status = "Calendar notice for UNID " + unid + " countered\n";

LotusScript® syntax

NotesCalendarNotice.Counter(Byval comments As String, start As NotesDateTime, end As NotesDateTime)

Java syntax

void NotesCalendarNotice.counter(String comments, DateTime start, DateTime end)