This flowchart illustrates the initial tasks that constitute runtime processing for the OK button.

The flowchart shows the following tasks:

First task - User clicks the Ok button

Second task/First decision point - Erros or 1st time warnings prestent? If Yes, Terminate OK processing

First decision point - Erros or 1st time warnings prestent? If NO, the tasks are as follows - 1. Fire Button Clicked, 2. Validate all the controls on the form, Second decison point - Errors or 1st time warnings present?

Second decison point - Errors or 1st time warnings present? If yes, Terminate OK processing

Second decison point - Errors or 1st time warnings present? If No, Fire post button clicked.

Third decision point - Form in Add mode? If No, Perform form close.

Third decision point - Form in Add mode? If yes, End form on add enabled?

Fourth decision point - End form on add enabled? If yes, Perform form close.

Fourth decision point - End form on add enabled? If No, Fire clear screen before Add, clear the form, and Fire clear screen after Add.