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
Registers a run script function.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScriptMac | 5.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
JavaScriptContext | The reference number of the javascript context. | $Context |
FunctionName | The name for the new function. | "StartScript" |
Returns OK or error.
Register RunScript function:
Set Variable [$r; Value:MBS( "JavaScript.RegisterRunScriptFunction"; $$Context; "FMRunScript" )]
# later:
# FMRunScript('Javascript.fp7', 'test', 'Hello World')
Created 7th November 2015, last changed 9th January 2020
JavaScript.RegisterFunction - JavaScript.RegisterSQLQueryFunction
Feedback: Report problem or ask question.