callbackToJavaScript()
The function allows to trigger a callback in JavaScript.
Synopsis
int callbackToJavaScript(
anytype value[, <type>
&returnValue]]
);
Parameters
Parameter | Description |
---|---|
value | Optional parameter that will passed to the JavaScript callback function. |
returnValue | Optional return parameter that will receive the return value of the JavaScript callback function. Its type defines how the JavaScript return value is converted to CTRL and therefore cannot be a mapping, anytype or mixed or a dynamic array of these types. |
Return Value
0 when successful, -1 in case of an error.
Details
The function is only available if the CTRL script has been started within a WinCC OA JavaScript Manager for Node.js.