Consultor Eletrônico



Kbase P100191: How to catch the DataAvailable event from an SDO?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/10/2005
Status: Unverified

GOAL:

How to catch the DataAvailable event from an SDO?

GOAL:

How to make normal object responsive to ADM2 DataAvailable event?

FACT(s) (Environment):

OpenEdge 10.x
Progress 9.x

FIX:

Many ADM2 objects can respond to dataAvailable. However you can make also normal object responsive to this event by doing the following:
1) Create smartLink with these characteristic:

Source: the SDO you want to catch the dataAvailable event
Link Type: dataAvailable (it is not available in the default smartLinks so you have to create using "New")
Target: THIS-PROCEDURE
2) Create an internal procedure called "dataAvailable" with a character input parameter:
PROCEDURE dataAvailable :
DEFINE INPUT PARAMETER inputEvent AS CHARACTER NO-UNDO.
MESSAGE inputEvent
VIEW-AS ALERT-BOX INFO BUTTONS OK.

END PROCEDURE.