This manual contains a complete list of 4GL commands available in Omnis Studio, arranged in alphabetical order. See the Omnis Programming manual for further information about using the Omnis commands.
Each command has the following information, as well as the syntax, description, and an Omnis code example.
Command group | Flag affected | Reversible | Execute on Client | Platform(s) |
---|---|---|---|---|
Functional group, e.g. “Constructs” | Whether or not (YES/NO) the command sets the flag when it executes; if the command executes successfully the flag is set to True, if it fails the flag is set to False. | Whether or not (YES/NO) the command is reversed when it is executed within a reversible block; see Begin reversible block command. | Whether or not (YES/NO) the command can be executed in a client method in the JavaScript Client | Which platform the command is available on, including: Windows, Linux, macOS; All indicates the command is available on all platforms |
In versions of Omnis Studio prior to version 10.x the commands were arranged in groups in the Method Editor, but the command groups no longer appear in the editor. The commands are listed here in the same functional groups for your convenience.
Some of the Obsolete Commands have been removed in Studio 10.x: they are listed here: Obsolete Commands
The commands in Omnis perform many different functions, including many legacy features that are no longer required for creating web and mobile apps using the JavaScript Client. There is a filter mechanism in the Method Editor to filter the list of commands that are displayed in the Code Assistant help list, primarily to remove any old commands, including those that allow you to manage Omnis datafiles.
Note you can still use the excluded commands in your code, and methods in converted libraries using these commands will continue to work – the filters just hide the commands from the Code Assistant help list.
The command filter is set under the Filter Commands submenu in the Modify menu in the Method Editor: note this is only visible when the cursor is in the code text entry area. The Exclude Old Commands filter is enabled by default, which excludes over 200 old commands, plus there are other filters available that exclude smaller subsets of commands. You can disable the current filter using the No Filter option, in which case all the commands available in Omnis will be shown in the Code Assistant help list.
The following commands can be executed in a client method in the JavaScript Client.
FileOps Error Codes | Web Error Codes |