Consultor Eletrônico



Kbase P6115: Enabling, Disabling, Hiding Or Viewing Of Fields In SmartDataViewer Not Taking Effect
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

FACT(s) (Environment):

Progress 9.1C

SYMPTOM(s):

Fields in SmartDataViewer are being enabled/disabled via code in displayFields but the changes are not taking effect

CAUSE:

The selected row in the Dynamic SmartDataBrowse was not fully selected (did not have dotted line around the selected row)

FIX:

Add a custom link between the SmartDataViewer and the Dynamic SmartDataBrowse then add the following code to the displayFields procedure in the SmartDataViewer:

DEFINE VARIABLE hProc   AS HANDLE NO-UNDO.
DEFINE VARIABLE hBrowse AS HANDLE NO-UNDO.

ASSIGN hProc = WIDGET-HANDLE(DYNAMIC-FUNCTION('linkHandles', 'ABC-Target'))
      hBrowse = DYNAMIC-FUNCTION('getBrowseHandle' IN hProc).

IF hBrowse:FOCUSED-ROW ? THEN
/* Code to enable/disable/hide/view fields goes here */