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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Calendar.Item.SetCalendar
Assigns a calendar to the calendar item.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Calendar | 3.4 | Yes | No | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| itemRef | The reference to the calendar item. Can be reference to event or reminder. | $eventRef |
| calendarRef | The id of the calendar to query. | $calendarRef |
Result
Returns OK or error.
Description
Assigns a calendar to the calendar item.Examples
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 )
Create 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.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 )]
See also
- Calendar.Item.SetAllDay
- Calendar.Item.SetCompleted
- Calendar.Item.SetDueDate
- Calendar.Item.SetEndDate
- Calendar.Item.SetStartDate
- Calendar.Item.SetTitle
- Calendar.NewEvent
- Calendar.NewReminder
- Calendar.SaveEvent
- Events.Item.SetCalendar
Example Databases
Blog Entries
- Todo/Reminder Synchronization for FileMaker on Mac using MBS Plugin
- MBS Filemaker Plugin, version 4.2pr11
FileMaker Magazin
Created 18th August 2014, last changed 31st October 2015
Calendar.Item.SetAllDay - Calendar.Item.SetCompleted
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins