Kbase 17257: Data Dictionary validation occurs before EDITING in V7
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Data Dictionary validation occurs before EDITING in V7
Due to the re-architecture of Progress for Version 7 data
dictionary validation will occur immediately when the user
hits GO before any GO-PENDING EDITING code.
Consider the code sample below. In Version 6, if a
customer number is entered and GO is hit the "sales-rep"
message from editing will display before data dictionary
validation for customer.sales-rep fires and displays a
message that a salesrep that exists must be entered. In
Version 7, when the same actions are taken, the data
dictionary validation for customer.sales-rep is done
before the editing code that displays "sales-rep" message.
This is expected behavior due to changes made for event
driven programming and is not considered a bug.
DEFINE VAR last-field AS CHARACTER.
DO WITH SIDE-LABEL:
UPDATE
customer.cust-num
customer.sales-rep
EDITING:
READKEY.
LAST-FIELD = FRAME-FIELD.
APPLY LASTKEY.
IF FRAME-FIELD NE LAST-FIELD OR GO-PENDING THEN DO:
IF LAST-FIELD = "sales-rep" OR GO-PENDING THEN DO:
MESSAGE "sales-rep".
PAUSE.
END. /* if last-field */
END. /* if frame-field */
END. /* editing */
END. /* do */
Progress Software Technical Support Note # 17257