Kbase P15648: How to initiate "add record" when ALT-N is pressed?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  29/01/2003 |
|
Status: Unverified
GOAL:
How to initiate "add record" when ALT-N is pressed?
FACT(s) (Environment):
Dynamics 2.0A
FIX:
Add a super procedure for your DynamicViewer and make initializeObject as follows:
PROCEDURE initializeObject:
/* htarget defined as HANDLE in definitions section */
hTarget = TARGET-PROCEDURE.
RUN SUPER.
ON 'ALT-N' ANYWHERE PERSISRENT RUN proccessAltN IN TARGET-PROCEDURE.
/* OR if you don't need proccessAltN call directly addRecord */
/* ON 'ALT-N' ANYWHERE PERSISTENT RUN addRecord IN TARGET-PROCEDURE. */
END PROCEDURE.
PROCEDURE proccessAltN :
RUN addRecord IN hTarget.
END PROCEDURE.