Official Content

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

Syntax

Delete

Type Returned:
Boolean (True or False)

Scope

Objects:   Transaction

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 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.

See Also

Update function
Insert function





Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant