Official Content

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

Syntax

Update

Type Returned:
Boolean (True or False)

Scope

Objects: Transaction

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, but must never be modified once entered (for example, the document's creation date). To solve this requirement, you can define the following rule in the Document Transaction Rules section:

NoAccept(DocumentCreationDate) If Update;

Thus, the DocumentCreationDate attribute will be shown read-only when the Transaction 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: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant