Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates a new javascript context.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JavaScriptWebKit | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
JSRef | Available in MBS FileMaker Plugin 12.2 or newer. The desired js reference. Usually each one gets a number assigned, but you can create a JavaScript environment with a fixed name, so you can anywhere reference it by name. |
"JS" | Optional |
Returns reference number or error.
Initialize:
Set Variable [ $r; Value:MBS("JavaScript.New") ]
If [ MBS("IsError") ]
Show Custom Dialog [ Title: "Failed to initialize"; Message: $r; Default Button: “OK” ]
Else
Set Variable [ $$Context; Value:$r ]
Show Custom Dialog [ Message: "OK"; Default Button: “OK” ]
End If
This function checks for a license.
Created 5th November 2015, last changed 9th February 2023
JavaScript.LoadLibrary - JavaScript.RegisterEvaluateFunction