Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

UNNotification.SetActionScript

Sets which script to call when a notification’s action is triggered.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
UNNotification 7.2 No No No No Yes

MBS( "UNNotification.SetActionScript"; Filename; ScriptName )

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’s action is triggered.
Called for both local and remote notifications.
Parameter to the script is a list with first the ID of the notification and second the action identifier.

Examples

Sets action script:

MBS( "UNNotification.SetActionScript"; Get(Filename); "NotificationActionTriggered" )

See also


UNNotification.Schedule   -   UNNotification.SetBadge

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins