Official Content

Returns True when the Transaction is being executed in Delete mode. Otherwise, it returns False.

Syntax

Any valid Transaction rule if Delete;

Type Returned:
Boolean (True or False)

Scope

Objects:   Transaction

Description

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.

Samples

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.

See Also

Update function
Insert function

     

Last update: June 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant