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: 7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Registers a run script function.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 5.4 Yes No Yes, macOS only No Yes
MBS( "JavaScript.RegisterRunScriptFunction"; JavaScriptContext; FunctionName )   More


Parameter Description Example value
JavaScriptContext The reference number of the javascript context. $Context
FunctionName The name for the new function. "StartScript"


Returns OK or error.


Registers a run script function.
The javascript function takes first parameter the filename, second parameter the script name. Optionally third parameter is passed as text to the script.
Call for example like this: FMRunScript('Javascript.fp7', 'test', 'Hello World')


Register RunScript function:

Set Variable [$r; Value:MBS( "JavaScript.RegisterRunScriptFunction"; $$Context; "FMRunScript" )]
# later:
# FMRunScript('Javascript.fp7', 'test', 'Hello World')

See also

Example Databases

Created 7th November 2015, last changed 7th November 2015

JavaScript.RegisterFunction   -   JavaScript.RegisterSQLQueryFunction

Feedback: Report problem or ask question.

MBS FileMaker Plugins