Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
JavaScript.CF
Calls a global function given the name with FileMaker values.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScriptWebKit | 12.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JavaScript.CF"; Name; Parameters... ) More
Parameters
Parameter | Description | Example |
---|---|---|
Name | The name of the function. | "test" |
Parameters... | Value to pass as parameter. |
Result
Returns value or error.
Description
Calls a global function given the name with FileMaker values.Please initialize the global "js" JavaScript environment before (see JavaScript.New) and fill it with function definitions as needed (see JavaScript.RegisterFunction). This may include functions to do FileMaker evaluate (see JavaScript.RegisterEvaluateFunction), SQL execute (see JavaScript.RegisterSQLQueryFunction) and starting scripts (see JavaScript.RegisterRunScriptFunction).
Parameters are passed to the function. Please pass as many parameters in FileMaker as needed.
Numbers are passed as number and other values are passed as text.
If the function needs more parameter, undefined values are used to fill up.
If the function needs less parameters, additional ones are dropped.
There is no limit in the number of parameters for MBS Plugin here.
Returns the result of the function converted to FileMaker, e.g. as text or number value.
Same as JavaScript.CallFunction, but takes "js" as the global JavaScript engine. See our example for JavaScript Custom Functions.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.
See also
- JavaScript.CallFunction
- JavaScript.New
- JavaScript.RegisterEvaluateFunction
- JavaScript.RegisterFunction
- JavaScript.RegisterRunScriptFunction
- JavaScript.RegisterSQLQueryFunction
Release notes
- Version 12.2
- Added JavaScript.CF function for using this JavaScript engine for custom functions, too.
Example Databases
Blog Entries
- MBS FileMaker Plugin 12.2
- Neues MBS Plugin 12.2 für Claris FileMaker
- MBS Plugin 12.2 for Claris FileMaker
- Custom Functions in JavaScript reloaded
- MBS FileMaker Plugin, version 12.2pr5
This function checks for a license.
Created 3th May 2022, last changed 9th February 2023
