Consultor Eletrônico



Kbase P22851: getContainerSource ADM2 function returns incorrect handle.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/10/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

SmartDataObject placed on a SmartFrame, which is instantiated to a SmartDialog.

SmartDataObject running on an appserver partition.

Calling getContainerSource in an override version of the SmartDataObject's initializeObject procedure after RUN SUPER.

Override version of the SmartDataObject's initializeObject procedure has the DB-Required tag turned on.

getContainerSource fails to provide the SmartDataObject with the correct handle for its container object.

CAUSE:

This is because the SmartDataObject is split between client and server. The server part has no idea about the client container object or its handle. So, 'getContainerSource' will fail to provide the server-side SmartDataObject with the correct handle for the SmartDataObject's container object (SmartFrame).

FIX:

Customize the SmartDataObject's initializeObject procedure in such a way that the call to getContainerSource is only in the client proxy and not in the server object of the SmartDataObject.