Consultor Eletrônico



Kbase P90937: How to know in the WRITE trigger what fields where changed in the application
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/14/2005
Status: Verified

GOAL:

How to know what fields were changed in the application

GOAL:

How to use the WRITE trigger

GOAL:

How to compare the old and new field values for a modified record

GOAL:

How to use the buffer compare statement

FIX:

The following is an example that shows in the WRITE trigger what fields were changed in the application:

TRIGGER PROCEDURE FOR WRITE OF Benefits OLD BUFFER oldBenefits.

DEFINE VARIABLE cChanges AS CHARACTER NO-UNDO.
BUFFER-COMPARE benefits TO oldBenefits SAVE RESULT IN cChanges.
MESSAGE cChanges VIEW-AS ALERT-BOX.