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.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sets the function list the plugin has.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: SetFunctions)
Parameter | Description | Example |
---|---|---|
FunctionList | The new function list. | "Version¶Functions" |
Returns OK or error.
Allow only two functions:
MBS( "Plugin.SetFunctions"; "Version¶Functions" )
A typical MBS Init script for server usage:
If [MBS("IsRegistered") ≠ 1]
If [MBS("IsServer")]
Set Variable [$r; Value:MBS("Register"; "test"; "Server"; 123; 123)]
# limit to the commands you need
Set Variable [$r; MBS( "Plugin.SetFunctions"; "IsRegistered¶CURL.New¶CURL.Perform..." )]
# enable trace for errors
Set Variable [$r; MBS( "Trace.ErrorsOnly"; 1 ) ]
Set Variable [$r; MBS( "Trace"; "/Library/FileMaker Server/Logs/MBS.txt" ) ]
Else
# register on client
Set Variable [$r; Value:MBS("Register"; "test"; "5 seats"; 123; 123)]
End If
End If
Created 16th May 2015, last changed 21st October 2017
Plugin.SetErrorScriptTrigger - Plugin.SetPreviewSize
Feedback: Report problem or ask question.