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
Plugin.SetErrorScriptTrigger
Sets script to trigger if plugin call returns an error.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Plugin
|
8.5 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
❌ No
|
✅ Yes
|
MBS( "Plugin.SetErrorScriptTrigger"; FileName; ScriptName )
More
MBS(
"Plugin.SetErrorScriptTrigger"; /* Sets script to trigger if plugin call returns an error. */
$FileName; /* The name of the FileMaker File that contains the script.e.g. "test.fmp12" */
$ScriptName) /* The name of the script to run.e.g. "MyScript" */
Less
Parameters
Parameter |
Description |
Example |
FileName |
The name of the FileMaker File that contains the script. |
"test.fmp12" |
ScriptName |
The name of the script to run. |
"MyScript" |
Result
Returns OK or error.
Description
Sets script to trigger if plugin call returns an error.
You can call Plugin.CallErrorScriptTrigger to test this.
The script is called with JSON block as parameter and this JSON includes entries for Function, Parameters, Result, UserName, FileName, ScriptName, AccountName, HostName, RecordID, CurrentTimeStamp, LayoutTableName, LayoutName, WindowName and TraceID.
With plugin version 6.0 or newer the script name can be a script ID number. In that case the plugin queries the script name for the given script ID. This allows to call scripts by ID and avoid problems if scripts are later renamed.
FileMaker 19.2 adds a fmplugin extended privileges. You my need to add such an extended privileges to allow the plugin to trigger scripts. See FileMaker product documentation for details.
See also
Release notes
Example Databases
Blog Entries
FileMaker Magazin
Created 24th October 2018, last changed 24th October 2018
Plugin.Seats
-
Plugin.SetFunctions
Feedback: Report problem or ask question.