Returns True when the Transaction is being executed in Delete mode. Otherwise, it returns False.
Any valid Transaction rule if Delete;
Type Returned:
Boolean (True or False)
Objects: Transaction
The Delete function allows conditioning the triggering of a rule defined in a Transaction object so that the rule is executed only if the end user performs a deletion.
A common use of this function is to include an error() rule denying access to a certain mode within Transactions.
For example, consider the following Transaction object:
Order
{
OrderId*
OrderDate
OrderDescription
}
Error('Orders may not be deleted') If Delete;
This rule prevents the user from accessing the delete mode, thus preventing the Orders from being deleted.
Note: In the iSeries environment, when an error rule for a certain mode is defined (as in this example, for Delete mode), the corresponding code to support this mode is not generated.
Update function
Insert function