Kbase P18455: How to Cancel an Add record operation using the ADM2
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/11/2011 |
|
Status: Unverified
GOAL:
How to Cancel an Update record operation using the ADM2
GOAL:
How to show a confirm message when the user press the add record button
GOAL:
How to Cancel an Add record operation using the ADM2
FACT(s) (Environment):
Windows
Progress 9.1x
FIX:
If a double-check is needed when the user press the Add Button in the toolbar, the following code could be added in the addRecord procedure in the SmartDataViewer:
/* Code placed here will execute PRIOR to standard behavior. */
DEFINE VARIABLE lContinuar AS LOGICAL NO-UNDO.
MESSAGE 'Are you sure?'
VIEW-AS ALERT-BOX QUESTION BUTTONS YES-NO UPDATE lContinuar.
IF NOT lContinuar THEN RETURN ERROR.
RUN SUPER.