Kbase P36852: How to get the handle of the search field FILL-IN of a Dynam
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/08/2003 |
|
Status: Unverified
GOAL:
How to get the handle of the search field FILL-IN of a Dynamic SmartDataBrowser
FIX:
Use this code:
DEFINE VARIABLE hFrame AS HANDLE NO-UNDO.
DEFINE VARIABLE hField AS HANDLE NO-UNDO.
DEFINE VARIABLE hReturn AS HANDLE NO-UNDO.
/*h_dynbrowser is the handle to the Dynamic SDB*/
{get containerHandle hFrame h_dynbrowser}.
hField = hFrame:FIRST-CHILD.
REPEAT WHILE( VALID-HANDLE( hField ) ):
IF hField:TYPE = "FIELD-GROUP" THEN
hField = hField:FIRST-CHILD.
IF hField:TYPE = 'fill-in' THEN hReturn = hfield.
hField = hField:NEXT-SIBLING .
END.
/* hReturn is the handle to the search field of the dynamic SDB */