Consultor Eletrônico



Kbase P6200: How to launch a program on a particular user event during th
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/30/2003
Status: Unverified

GOAL:

How to launch a program on a particular user event during the execution of a SmartObjects Application?

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.x

FIX:

Create an external procedure that contains the following code in it:

/*** externalProc.p ***/

ON GO /* F2 */ ANYWHERE
DO:
RUN applhelp.p.
END.

Next, run the above external procedure (.p) persistently from the code of the Smart Objects Application's main menu program. For instance:

/*** main-menu.w ***/

PROCEDURE initializeObject :
/*------------------------------------------------------------------------------

Purpose: Super Override
Parameters:
Notes:
------------------------------------------------------------------------------*/


/* Code placed here will execute PRIOR to standard behavior. */
RUN externalProc.p PERSISTENT.

RUN SUPER.

/* Code placed here will execute AFTER standard behavior. */

END PROCEDURE.