Kbase 12644: Correct usage of dialog boxes and ENDKEY processing
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Correct usage of dialog boxes and ENDKEY processing
PROBLEM: When you have a dialog box that updates the database,
and on the trigger that is writing the updates, you have an event
APPLY "window-close", this will undo the database updates.
EXPLANATION: When working in the UIB and creating dialog boxes,
you get a FRAME and you should remember to treat the dialog box as a
FRAME.
To best Program with Dialog-boxes do:
o Set the OK/SAVE button to have AUTO-GO properties
o Set the cancel button to have AUTO-ENDKEY properties
o On 'GO' of the frame update the database and the dialog-box will
automatically go away.
o On 'ENDKEY' do nothing except possibly to set a flag indicating
that the dialog-box was canceled to send back to the main program.
The dialog-box should go away automatically.
If you require more control over the ENDKEY handling for the dialog
box, you may put a DO ON ENDKEY block around the WAIT-FOR GO OF
FRAME {&FRAME-NAME}.
Progress Software Technical Support Note # 12644