Contents
Strategic Partner Links
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
SDK Examples
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.
This function has been restricted from the user manual because it is potentially harmful. It may be removed from the software completely.
system.util. invokeGateway(function)
String function - The function name.
PyObjects args - Any number of args to send to the function in a list.
Object return - The return from the function that was passed in.
All
#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])