Official Content

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

Syntax

Any valid Transaction rule if Update;

Type Returned:
Boolean (True or False)

Scope

Objects: Transaction

Description

The Update 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 an update.

Samples

Consider the following Transaction object:

Document 
{ 
   DocumentId*
   DocumentDescription
   DocumentCreationDate     
}

Suppose you have an application that manages documents, where certain attributes must be filled in with information only at insert time, and must never be modified once entered (for example, the document's creation date). To meet this requirement, you can define the following rule in the Document Transaction Rules section:

NoAccept(DocumentCreationDate) If Update;

Thus, the DocumentCreationDate attribute will be read-only when the Document Transaction object is executed in Update mode.

Note: In the iSeries environment, when an error rule for a certain mode is defined, the corresponding code to support this mode is not generated.


See Also

Delete function
Insert function

 

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