Kbase P80023: ADM2: How to perform a client-side action at the end of an SDO transaction ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/11/2004 |
|
Status: Unverified
GOAL:
How to perform a client-side action at the end of an SDO transaction ?
GOAL:
How to open a dialog box after records are committed ?
FIX:
To ensure action is undertaken immediately after the transaction has ended, before control of the application is returned to the user, the submitRow function can be customized as follows:
/*------------------------------------------------------------------------------
Purpose: Super Override
Notes:
------------------------------------------------------------------------------*/
DEFINE VARIABLE lReturn AS LOGICAL NO-UNDO.
/* Code placed here will execute PRIOR to standard behavior. */
lReturn = SUPER( INPUT pcRowIdent, INPUT pcValueList ).
IF lReturn EQ FALSE THEN RETURN FALSE. /* handle error in default behavior */
/* Code after standard behavior here */
Note that depending on the required action, further modifications may need to be made.
For example if a dialog box should be opened this is a UI action. This should be kept out of the SDO - it is the container that will manage the dialog box.
In this case, you would add a custom link from the SDO to the SmartContainer. The modification to sumbitRow will then contain the appropriate PUBLISH statement, the container procedure will have the code added to actually open the dialog box.