Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

Invokes a function on the gateway. It will return the return value of the function, or throw an exception if something went wrong calling that function.

Syntax

system.util. invokeAsynchronous( function )

  • Parameters

String function  - The function name.

PyObjects  args  Any number of args to send to the function in a list.

  • Returns

Object return  - The return from the function that was passed in.

  • Scope

All

Code Examples
Code Snippet
#This will take the text written into the text area, and save it to a file on the gateway.
 
data = event.source.parent.getComponent("Text Area").text
system.util.invokeGateway("system.file.writeFile", ["C:\\MyFile.txt", data])
  • No labels