Kbase P81643: How to intercept an Error message passed from an SDO to a client side object.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/05/2004 |
|
Status: Unverified
GOAL:
How to intercept an Error message passed from an SDO to a client side object.
GOAL:
How to execute custom code on the client side after an SDO validation procedure has returned an error, but before the error is displayed to the user.
FACT(s) (Environment):
ADM2
FACT(s) (Environment):
Progress 9.1D
FIX:
Use an override of the 'showDataMessages' procedure in the client side (smartDataViewer or smartDataBrowser) object.
Adding custom code before the showDataMessages' RUN SUPER will execute before the error message is displayed to the client. For example:
PROCEDURE showDataMessagesProcedure :
/*------------------------------------------------------------------------------
Purpose: Super Override
Parameters:
Notes:
------------------------------------------------------------------------------*/
DEFINE OUTPUT PARAMETER pcReturn AS CHARACTER NO-UNDO.
/* Code placed here will execute PRIOR to standard behavior. */
MESSAGE "My Message".
RUN SUPER( OUTPUT pcReturn).
/* Code placed here will execute AFTER standard behavior. */
END PROCEDURE.