Triggers

Here you can set functions for the data class' ON trigger. See also -> ON Triggers for data classes.

Name the ON trigger's name
Sequence execution sequence for ON triggers
Function code a trigger function's name

Name

The ON trigger for the data class

attribute master attribute for function (T_DTO_FNC)
type, entry string, entry required
max. no. of characters 20
selection tool menu with all ON_Triggers
multilingual field no

ON triggers always respond when default methods in the Dto class (for data processing and queries) are applied to the data class:

ON-UPDATE
when records in the database are to be edited

ON-INSERT
when records are to be inserted or copied into the database

ON-QUERY
when a database query is to be launched

ON-COUNT
when a database count is to be launched

ON-DELETE
when records are to be permanently deleted from the database

ON-DATACHANGE
when a field is modified

Each trigger can only be selected once, i.e. it can only be assigned one trigger function.

Note! Assigning more than one function to ON triggers of a single type and defining the execution sequence is not yet possible in version 4.1-.

Sequence

Execution sequence for functions attached to an ON trigger of the same type

attribute master attribute for function (T_DTO_FNC)
type, entry integer, entry required
max. no. of characters 5
selection tool no
multilingual field no

Note! Assigning more than one function to ON triggers of a single type and defining the execution sequence is not yet possible in version 4.1-. You should enter the sequence, but it will not be used.

Function code

A trigger function's name

attribute master attribute for function (T_DTO_FNC)
type, entry string, entry required
max. no. of characters 2000
selection tool no
multilingual field no

You can enter a global C++ function (or static method).