Script Actions
Script actions
Every ESL script consists of a sequence of actions executed when the script is activated. The actions
are defined in the script editor environment.
Parts of action declarations enclosed in square brackets [ ] are optional. The symbol |
(i.e. OR) expresses a possibility of an alternative notation.
Action types
The list of the actions types. The following list describes the basic set of actions, which are available
in both script applications (object of Event type, Active
picture).
Actions may be divided into the following basic categories (types):
Note: D2000 System allows to use JAVA language to write the applications. The equivalents of ESL actions are stated in the extra html files available in the D2000 System installation directory - subdirectory Help.
Assignment actions
Assignment actions allow to change values and references of :
objects in the system
local variables
Actions for accessing a database
Groups of actions, which use various methods for accessing data, are intended for working with a table
of a database.
If an error occurs while working with a database, the numerical code that describes it closely may
be acquired by calling the function %GetLastExtErrorCode.
More detailed information about the error may be acquired by %GetLastExtErrorMsg
function.
The first method uses the existence of a key or a WHERE condition.
According to the way of action notation, it allows to write / read one or several lines.
Example: work with a database table (actions DB_...)
The second method uses paging, where the page size (line number in database table) is optional.
Example: work with a database table (actions PG_ ...)
The third method is a modification of the first one. The modification is based on the fact, that work with a database table does not require the CONNECT and DISCONNECT actions.
The last method allows to use the whole scale of SQL commands to work with a database.