WA EXECUTE JAVASCRIPT FUNCTION

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA EXECUTE JAVASCRIPT FUNCTION ({*; }object; jsFunction; result|*{; param}{; param2; ...; paramN})

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
jsFunctionStringName of JavaScript function to execute
result|*VariableFunction result (if expected)
or * for a function with no result
paramStringParameter(s) to pass to function

Description

The WA EXECUTE JAVASCRIPT FUNCTION command executes, in the Web area designated by the * and object parameters, the JavaScript function jsFunction and optionally returns its result in the result parameter.

If the function does not return a result, pass * in the result parameter.

You can pass one or more strings containing the parameters of the function in param.

Example

Calling a JavaScript function with 3 parameters:

   $JavaScriptFunction:="TheFunctionToBeExecuted"
   $Param1:="10"
   $Param2:="true"
   $Param3:="1,000.2" `note "," as thousands separator and "." as the decimal separator

   WA EXECUTE JAVASCRIPT FUNCTION(MyWArea; $JavaScriptFunction;$Result; $Param1; $Param2; $Param3)

See Also

WA Execute JavaScript.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next