Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Calendar.SaveEvent

Saves the event.

Component Version macOS Windows Linux Server iOS SDK
Calendar 3.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "Calendar.SaveEvent"; eventRef )   More

Parameters

Parameter Description Example
eventRef The id of the event to query. $eventRef

Result

Returns OK or error.

Description

Saves the event.

Examples

Creates new event:

$c = MBS("Calendar.NewEvent");
$r = MBS("Calendar.Item.SetTitle"; $c; CalendarTest::ItemTitle)
$r = MBS("Calendar.Item.SetNotes"; $c; CalendarTest::ItemNotes)
$r = MBS("Calendar.Item.SetURL"; $c; CalendarTest::ItemURL)
$r = MBS("Calendar.Item.SetLocation"; $c;CalendarTest::ItemLocation)
$r = MBS("Calendar.Item.SetStartDate"; $c; CalendarTest::ItemStartDate)
$r = MBS("Calendar.Item.SetEndDate"; $c; CalendarTest::ItemEndDate)
$r = MBS("Calendar.Item.SetAllDay"; $c;CalendarTest::ItemAllDay)
$r = MBS("Calendar.Item.SetCalendar"; $c; CalendarTest::CalendarUID)
$r = MBS("Calendar.SaveEvent"; $c )

Create a new reminder:

$id = MBS("Calendar.NewReminder")
$r = MBS( "Calendar.Item.SetDueDate"; $id; Get(CurrentHostTimeStamp) )
$r = MBS( "Calendar.Item.SetTitle"; $id; "Test" )
$r = MBS( "Calendar.Item.SetCalendar"; $id; "Erinnerungen" )
$r = MBS( "Calendar.SaveReminder"; $id )

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


Calendar.SaveCalendar - Calendar.SaveReminder