Purpose

EODEXIT is used to save the current record after validation.
 

Syntax

EODEXIT{VALIDATE}
 

Operation

VALIDATE is a reserved word, similar to TRUE and FALSE.  It translates to the value 99.
 

Remarks

EODEXIT(VALIDATE) is designed to overcome the programming difficulties associated with the PROIV Timing Cycle and GUI screens where users have the ability to visit fields in a random order and to exit from any field.

Using the option VALIDATE will cause the EOD processing to traverse the Timing Cycle as if EOD had been pressed on the keyboard, with the addition of before field logic.  

The Timing Cycle steps executed are:

Before Field Logic
Display Data
After Field Logic
File Reads
File Writes

Processing stops for any of the following events:

Executing FLD statements
If any mandatory fields are found
File read errors

Whenever EODEXIT(VALIDATE) is executed before or in the Last Read Field, the EODEXIT(VALIDATE) is treated as a CANCEL. Any Must Input fields become irrelevant if no file write occur.

It is important to note that when you use EODEXIT(VALIDATE) with a SQL database and the current field does not contain data,the EODEXIT(VALIDATE) does not to write the data if an LSEXIT is called before the end of the cycle. However, you can put the LSEXIT in the On Focus of the first field of the cycle to avoid this scenario.

 

Example
 

 

Comment on this topic

Topic ID: 520054