Kbase P17787: Data dictionary validation don't fire on a fill-in
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
SYMPTOM(s):
Database field fill-in 'entry' trigger does not fire if field validation fails.
Database field fill-in 'leave' trigger fires if field validation fails.
CAUSE:
The default Progress behavior is to ignore the 'leave' event if the database field validation fails.
Since no actual 'leave' takes place in this case, no subsequent entry event occurs and hence the 'entry' event trigger does not fire.
FIX:
To force the 'entry' event trigger to fire even if the validation fails, use code similar to the following in the fill-in 'leave' trigger:
DO:
IF NOT SELF:VALIDATE() THEN DO :
APPLY 'entry' TO SELF.
RETURN NO-APPLY.
END.
ELSE
MESSAGE "successful field validation code goes here"
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.