Consultor Eletrônico



Kbase P55086: Dynamics 2.0A to 2.1 conversion issue with changeFolderLabel
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/11/2003
Status: Unverified

FACT(s) (Environment):

Dynamics

SYMPTOM(s):

Conversion issue with changeFolderLabel

Invalid widget-handle. Not initialized or points to a deleted widget. (3135)

In a static viewer dataAvailable override, there is a code that gets the container's page folder handle and changes the folder's labels. On launch of the container from the object controller, the dataAvailable override fires twice. The first time, no errors occur. The second time an 3135 occurs (Invalid widget-handle):

dataAvailable tr/ob/trobheadv.w (.\tr\ob\trobheadv.r) at line 7343
--> changeFolderLabel af/sup2/afspfoldrw.w (c:\dynamics21\gui\icf\af\sup2\afspfoldrw.r) at line 8836

The label change seems to work. But the error message cannot be suppressed.

CHANGE:

Migration from 2.0A to 2.1

FIX:

Change the code to get it to work as follow:

Instead of relying on the previously set value of the handle to the folder (ghFolder, below), re-get the handle each time the dataAvailable override fires. Some how, the handle to the folder becomes invalid, although it does not fail the VALID-HANDLE test. Commenting out the first line as below made it work.

/* IF NOT VALID-HANDLE (ghFolder) THEN */
DO:
{get DataSource hSDO }.
{get ContainerSource hContainer}.
{get PageSource ghFolder hContainer}.
IF NOT VALID-HANDLE (ghFolder) THEN RETURN.
END.