Returns True when the Transaction is in Delete mode. Otherwise, it returns False.
Delete
Type Returned:
Boolean (True or False)
Objects: Transaction
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 and thereby eliminating Orders.
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