Consultor Eletrônico



Kbase P69469: ADM2: How to override the assignment of the Progress unknown
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/02/2004
Status: Unverified

GOAL:

ADM2: How to override the assignment of the Progress unknown value (?), and force the assignment of the "?" character.

FIX:

This can be accomplished by overriding the SDO's postTransactionValidate procedure. Logic will be needed to check for the assignment of the ? character, then the database record itself will have to be updated with the literal value "?".

For example, the postTransactionValidate user-defined procedure may look something like this:

FOR EACH rowobjupd:
IF rowobjupd.fieldname = ? THEN
DO:
FIND FIRST customer OF rowobjupd WHERE customer.custnum = rowobjupd.custnum.
Customer.test = "?".
END.
END.