Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

JavaScript.RegisterEvaluateFunction

Registers evaluate function.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JavaScript 5.4 Yes No Yes, macOS only No Yes

MBS( "JavaScript.RegisterEvaluateFunction"; JavaScriptContext; FunctionName )

Parameters

Parameter Description Example value
JavaScriptContext The reference number of the javascript context. $Context
FunctionName The name for the new function. "Evaluate"

Result

Returns OK or error.

Description

Registers evaluate function.
The javascript function takes one parameter which is expression to evaluate. Returns the text of the expression result.
Call later like this: FMEvaluate("Get(AccountName)")

Examples

Register function:

MBS( "JavaScript.RegisterEvaluateFunction"; $$Context; "FMEvaluate" )
# later:
# FMEvaluate("Get(AccountName)")

See also

Example Databases


JavaScript.New   -   JavaScript.RegisterFunction

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins