Consultor Eletrônico



Kbase P8258: Enablefield procedure doesn't work after migration to 9.1D
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/30/2004
Status: Unverified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

Buttons within the SmartDataViewer are disabled when the SmartDataViewer is empty

The disable and enable fields procedures in viewer.p are not working correctly

CHANGE:

Migration from 9.1x to 9.1D

CAUSE:

Bug# 20020917-021

CAUSE:

In 9.1D, the ADM assumed the responsibility for enabling/disabling non-db objects in viewers. The ADM handles this in enableFields and disableFields.

This was something the developer would handle before 9.1D.


FIX:

Upgrade to 9.1D02 or later.

Following workaround is available if the service pack 9.1D02 cannot be installed:

1)To enable the buttons for that SmartDataViewer only to have SDV buttons enabled:

Enable the buttons in 9.1D by overriding the initializeobject and enable the buttons.


2)To modify the behavior for all the SmartDataViewers:

In enableFields(viewer.p) comment out the block of code directly after
the following comment:
/* Enable no db fields */
In disableFields(viewer.p) comment out the block of code directly
after the following comment:
/* Disable no db fields */

##It is necessary to recompile the viewer.p.