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 contextResult:

   output returned by JavaScript as text


Error:

   bBox_LastError (-5)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, however JavaScriptCore must be installed for this to work.

Also starting with 1.00, you can use "JSON" as a delimiter value to get JSON text output without having to explicitly doing so 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.

––––––––––

bBox Functions

bBox Wiki