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