Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Calendar.NewEvent

Creates a new event.

Component Version macOS Windows Linux Server iOS SDK
Calendar 3.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "Calendar.NewEvent" )

Parameters

none

Result

Returns ID of new event.

Description

Creates a new event.
Calendar item reference numbers are starting at 27000 and counting up for each new item.
Or the plugin returns you the UUID for the event.

Examples

Create an event:

#new event
Set Variable [$c; Value:MBS("Calendar.NewEvent")]
# set title and other variables
Set Variable [$r; Value:MBS("Calendar.Item.SetTitle"; $c; CalendarTest::ItemTitle)]
Set Variable [$r; Value:MBS("Calendar.Item.SetNotes"; $c; CalendarTest::ItemNotes)]
Set Variable [$r; Value:MBS("Calendar.Item.SetURL"; $c; CalendarTest::ItemURL)]
Set Variable [$r; Value:MBS("Calendar.Item.SetLocation"; $c;CalendarTest::ItemLocation)]
Set Variable [$r; Value:MBS("Calendar.Item.SetStartDate"; $c; CalendarTest::ItemStartDate)]
Set Variable [$r; Value:MBS("Calendar.Item.SetEndDate"; $c; CalendarTest::ItemEndDate)]
Set Variable [$r; Value:MBS("Calendar.Item.SetAllDay"; $c;CalendarTest::ItemAllDay)]
Set Variable [$r; Value:MBS("Calendar.Item.SetCalendar"; $c; CalendarTest::CalendarUID)]
# save event
Set Variable [$r; Value:MBS("Calendar.SaveEvent"; $c )]
# store id for later reference
Set Field [CalendarTest::ItemUID; MBS("Calendar.Item.GetUID"; $c)]

See also

Example Databases

FileMaker Magazin

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


Calendar.NewCalendar - Calendar.NewReminder

Feedback: Report problem or ask question.