Update function

Official Content
This documentation is valid for:

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

Syntax

Update

Type Returned:
Boolean (True or False)

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.

Example

We have a system that manages documents in a publishing company, where certain attributes must be filled in with information only at insert time, but must never be modified once entered. For example, the document creation date and author name. To state this situation, we can include the following two rules in the corresponding transaction to make sure these attributes will only be accepted at insert time:

NoAccept(CreationDate) If Update;
NoAccept(AuthorName) If Update;

Scope

Objects   Procedure object, Transaction object, Web Panel object

See also

Delete function
Insert function