Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Installs a notification script.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Events 6.2 Yes No No No Yes
MBS( "Events.SetNotification"; FileName; ScriptName )   More


Parameter Description Example value
FileName The name of the FileMaker File that contains the script. "test.fp7"
ScriptName The name of the script to run. "MyScript"


Returns OK or error.


Installs a notification script.
This script is called whenever something in the calendar database changed.

Notification is sent out when the database is changed by either an external process, another event store in the same process, or by calling saveEvent: or removeEvent: on a store you are managing. When you receive this notification, you should consider all objects instances you have to be invalid. If you had selected events for a date range using Events.Events, etc. for display, you should release them and re-fetch the events again. If you have an event you are actively using (e.g. you are currently viewing details for it or editing it), you can call Events.Object.Refresh to try to revalidate it against the latest state of the database. If that method returns 1, you can continue to use the event, otherwise, you should release it and abandon what you were doing with it.

This script trigger will also be posted if access to events or reminders is changed by the user.


Installs notification script:

MBS( "Events.SetNotification"; "test.fmp12"; "MyScript" )

See also

Example Databases

Created 10th March 2016, last changed 29th March 2016

Events.SelectEvent   -   Events.SetNotificationEvaluate

Feedback: Report problem or ask question.

MBS FileMaker Plugins