Consultor Eletrônico



Kbase P25999: Dynamics: How to get the data value of the dynlookup field i
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/05/2003
Status: Unverified

SYMPTOM(s):

Dynamics: Problem getting the data value of the dynlookup field in the viewer's super

Trying to utilize call to the 'widgetvalue' function does not return the value for the dynlookup field

Using Dynamics 2.0A02

CAUSE:

Using the 'widgetHandle' function will provide the procedure handle of the
dynlookup instance and not the widget handle therefore preventing the later
use of the function 'widgetValue' to get the actual data displayed.

FIX:

It is necessary to use the following code in the viewer's super procedure
in order to get the data value from the dynlookup field:

DEFINE VARIABLE hDynLookupInstance AS HANDLE NO-UNDO.
DEFINE VARIABLE cValue AS CHARACTER NO-UNDO.

hDynLookupInstance = widgetHandle(·name-of-the-lookup·).
cValue = DYNAMIC-FUNCTION(·getDataValue· IN hDynLookupInstance).

MESSAGE cValue.

This code needs to be placed in appropriate internal procedure
that is part of the viewer's super procedure.