Built-in front calls / Webcomponent front calls |
Calls a JavaScript function through the web component.
ui.Interface.frontCall("webcomponent", "call", [aui-name, function-name, [ param1, param2, ... ] ], [result] )
Calls a JavaScript function through the web component. The JavaScript function must be implemented in the HTML content pointed by the URL-based web component, or in the user-defined JavaScript of a gICAPI-based web component.
The aui-name and function-name arguments are mandatory.
The arguments following the function-name argument will be passed to the JavaScript function.
That the result variable will contain the value returned by the JavaScript function.
DEFINE result STRING CALL ui.Interface.frontCall("webcomponent","call", ["formonly.data","echoString","abcdef"],[result])For a complete example, see Example 2: Calling a JavaScript function of a gICAPI web component.