Consultor Eletrônico



Kbase P10224: DataAvailable can't be overriden in SmartDataBrowse
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/08/2003
Status: Unverified

SYMPTOM(s):

DataAvailable can't be overridden in SmartDataBrowse

This name is reserved, or already defined in an included Method Library

DataAvailable can be overridden in SDO and SmartDataViewer

CAUSE:

Expected behavior:
This occurs because dataAvailable is defined as a browser specific version of that procedure in browser.i. That file is included directly into the browser.p template, so in effect, the super procedure version can't be overridden because it already is.
For complicated reasons, it was necessary to put the browser version of dataAvailable into the browser.i include file, not into the super procedure.

FIX:

The solution for the developer is to fall back on what would have been done
in version 8: define the "EXCLUDE-dataAvailable" preprocessor value, which
will remove the standard code from the compile, and write your own version
of dataAvailable (presumably starting with a copy of the standard code).
This is necessary only for this and at most a couple of other procedures
in the whole of the ADM.

The Section Editor won't let you create a dataAvailable procedure because it knows one already exists, regardless of its EXCLUDE status. You can write the procedure block for the local dataAvailable in the Main Block section.