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: 8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1    Statistic  

UNNotification.SetScript

Sets which script to call when a notification is presented.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
UNNotification 7.2 Yes No No No Yes
MBS( "UNNotification.SetScript"; Filename; ScriptName )   More

Parameters

Parameter Description Example value
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"

Result

Returns OK or error.

Description

Sets which script to call when a notification is presented.
Called for both local and remote notifications.
Parameter to the script is the ID of the notification.

Use UNNotification.AddUserInfo to associate your own values with the notifications, which you can then use in the triggered script.

Examples

Sets script:

MBS( "UNNotification.SetScript"; Get(Filename); "NotificationReceived" )

See also

Example Databases

Created 15th April 2017, last changed 13th December 2019


UNNotification.SetNFCScript   -   UNNotification.SetSound

Feedback: Report problem or ask question.




Links
MBS FileMaker blog