| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Component: JavaScript
Run Javascript without Webviewer cross-platform, even on server.
Our JavaScript functions use DukTape as engine for cross-platform JavaScript, while the JavaScriptWebKit functions use WebKit on macOS/iOS (added Windows and Linux in v13.1).
| Version | macOS | Windows | Linux | Server | iOS SDK |
| 10.0 / 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| Item | Details |
|---|---|
| JS.AddFileMakerEvaluateFunction Adds an Evaluate function. | All 10.0 |
| JS.AddFileMakerRunScriptFunction Adds a function to start scripts from JavaScript. | All 10.0 |
| JS.AddFileMakerSQLFunction Defines a SQL Evaluate function for JavaScript. | All 10.0 |
| JS.AddFunction Adds a global function defined as a text string. | All 10.0 |
| JS.CF Calls a global function given the name with FileMaker values. | All 11.3 |
| JS.CallFunction Calls a global function given the name with JSON data. | All 10.0 |
| JS.CallFunctionValues Calls a global function given the name with FileMaker values. | All 11.3 |
| JS.Evaluate Evaluates a JavaScript expression. | All 10.0 |
| JS.EvaluateToString Evaluates a JavaScript expression. | All 10.0 |
| JS.GetGlobalProperty Queries global property. | All 10.0 |
| JS.GetGlobalPropertyValue Queries global property. | All 10.0 |
| JS.InitModules Installs Duktape module loading. | All 11.2 |
| JS.List Lists all JavaScript object references. | All 11.3 |
| JS.New Creates a new JavaScript engine instance. | All 10.0 |
| JS.Now Queries current time as double value. | All 10.1 |
| JS.ObjectCount Queries global object counter. | All 10.1 |
| JS.Release Frees the JavaScript engine. | All 10.0 |
| JS.ReleaseAll Release all JavaScript environments. | All 10.5 |
| JS.SetGlobalProperty Sets a global property. | All 10.0 |
| JS.SetGlobalPropertyValue Sets a global property. | All 10.0 |
| JS.StringCount Queries global string counter. | All 10.1 |
| JS.TimeToDateComponents Converts time to date components. | All 10.1 |
| JS.TimeToUTCDate Converts time value to timestamp. | All 10.1 |
| JS.UTCDateToTime Converts date to time value. | All 10.1 |
24 functions shown.
These functions require a license (92%).
Release notes
- Version 13.2
- Fixed JavaScript.Available to return 1 on macOS and iOS, broken in 13.1.
- Version 13.1
- Added JavaScript.LoadLibrary and JavaScript.Available functions.
- Fixed JavaScript.New to work on iOS again.
- Version 13.0
- Added JavaScript.List function.
- Version 12.2
- Added JavaScript.CallFunction, JavaScript.GetPropertyJSON and JavaScript.SetPropertyJSON functions.
- Added JavaScript.CF function for using this JavaScript engine for custom functions, too.
- Added new parameter for JavaScript.New to name the instance.
- Version 10.5
- Added AVExport.ReleaseAll, AVRecorder.ReleaseAll, CoreML.ReleaseAll, DNSLookup.ReleaseAll, Dictionary.ReleaseAll, FM.SQL.ReleaseAll, JS.ReleaseAll, JavaScript.ReleaseAll, LDAP.ReleaseAll, PDFKit.ReleaseAll, PKCS12.ReleaseAll, PKCS7.ReleaseAll, PKey.ReleaseAll, SSH.ReleaseAll, WinSendMail.ReleaseAll, WindowsML.ReleaseAll, WordFile.ReleaseAll, and X509.ReleaseAll.
- Version 10.0
- Added our own JavaScript engine to run JavaScript in FileMaker without a web viewer: JS functions.
Blog Entries
FileMaker Magazin
Example Databases