Kbase P25881: In Dynamics, enablewidget does not enable buttons
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
FACT(s) (Environment):
Dynamics 2.0A
SYMPTOM(s):
enablewidget does not enable associated widget buttons
EnableWidget can be used to enable a widget, but it does not enable any associated buttons for a date fillin (calendar) or decimal fillin (calculator)
CAUSE:
The exact cause is unknown at the time of this writing
FIX:
Manually enable the button as follows:
DEFINE VARIABLE hField AS HANDLE NO-UNDO.
DEFINE VARIABLE hPopup AS HANDLE NO-UNDO.
DYNAMIC-FUNCTION('enableWidget':U, INPUT "fiChar").
ASSIGN hField = widgetHandle('fiChar').
IF VALID-HANDLE(hField) THEN
ASSIGN hPopup = {fnarg popupHandle hField}.
IF VALID-HANDLE(hPopup) THEN
ASSIGN hPopup:SENSITIVE = YES.