-
Notifications
You must be signed in to change notification settings - Fork 0
bBox_JavaScript
bBox_JavaScript( expression {; delimiter; ...} )
Parameters:
expression: the first JavaScript statement or expression
delimiter: demarcates results for each expression, or a null string
param3…param16: additional JavaScript expressions using same context
Result:
output returned by JavaScript as text
Error:
bBox_LastError ("JS")
Script Step:
none
First appeared in: 0.86
Examples in demo file:
Compatibility: Client, macOS, Ubuntu, Server, WebDirect, WPE
Evaluate one or more JavaScript expressions or statements. These may be complete scripts, or a simple calculated result.
If multiple expressions are given and the delimiter parameter is a null string, only the result from the last expression is returned. Each expression has access to the global objects created by the previous expressions.
Starting with version 1.00, the bBox_JavaScript function can be used on Ubuntu, and requires the libjavascriptcoregtk library to be installed for the plug-in to load.
Also starting with 1.00, you can use "JSON" as a delimiter value to get JSON text output without having to explicitly do this in your JavaScript code. However, if multiple JavaScript expressions are given the output from each will be converted separately and appended to the text result without any additional delimiters.
See the main page for information on the built-in FileMaker functions for JavaScript. This function is session and thread safe.
© 2025 Beezwax Datatools, Inc. All rights reserved.