Returns True when the Transaction is being executed in Update mode. Otherwise, it returns False.
Any valid Transaction rule if Update;
Type Returned:
Boolean (True or False)
Objects: Transaction
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.
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