Consultor Eletrônico



Kbase P78223: dynamic lookup lookupcomplete trigger fires before lookup screen is hidden.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/4/2004
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1A

SYMPTOM(s):

dynamic lookup lookupcomplete trigger fires before lookup screen is hidden.

LookupComplete event fires before the dynamic lookup browse is hidden.

CAUSE:

This behaviour is by design.

FIX:

Use the LookupExited event instead. This event uses the following input parameters:

DEFINE INPUT PARAMETER phLookup AS HANDLE NO-UNDO.
DEFINE INPUT PARAMETER plSelectionMade AS LOGICAL NO-UNDO.

To use this event, simply add a procedure to your Viewer?s custom super procedure with the name lookupExited and the above parameters. Then in initializeObject of your custom super procedure, before the RUN SUPER statement, add the following line:

SUBSCRIBE PROCEDURE TARGET-PROCEDURE TO "lookupExited":U IN TARGET-PROCEDURE.