Consultor Eletrônico



Kbase P11448: getPanelState returns blank / empty string
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/21/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

getPanelState returns blank / empty string

ADM2 Dynamic-Function getPanelState no longer returns a value

CHANGE:

Migrated from Progress 9.1C to 9.1D

CAUSE:

The PanelState is no longer set in 9.1D. This change was done intentionally, setButtons was also removed from the chain of events.

PanelState never was reliable for this kind of logic, it returned the last state passed to the toolbar. There are many circumstances where this doe not reflect the current state of the object, in particular if the toolbar also has more than one type of link.

FIX:

A workaround is to use the following:


IF VALID-HANDLE(h_dynselect-mediatype) THEN DO:
 IF DYNAMIC-FUNCTION('getObjectMode') <> 'view':U THEN
    RUN enablefield IN h_dynselect-mediatype.
 ELSE
   RUN disablefield IN h_dynselect-mediatype.
END.