Consultor Eletrônico



Kbase P104963: Running a smartObjects without compiled R-code results in errors 3135 and 3140.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/09/2008
Status: Unverified

SYMPTOM(s):

Running a smartObjects without compiled R-code results in errors 3135 and 3140.

smartObjects fail when running only source code.

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

Cannot access the <attribute name> attribute because the widget does not exist. (3140)

CAUSE:

Progress uses the smartDataObjects RCODE-INFO property to determine whether to run the full SDO or its client side proxy _cl file.

FIX:

In order to eliminate this message and to be able to successfully run the SDO from source code, you need to set a property named RunDOOptions in the SDO's container object.

RunDOOptions can hold a comma-separated list of options that constructObject (in containr.p) uses to determine how to search for code when running Data Objects such as SDOs and SBOs.
Create an override version of the constructObject ADM2 procedure in the SDO's container object and insert the following line of code before standard behavior (RUN SUPER):
DYNAMIC-FUNCTION('setRunDOOptions':U, INPUT 'sourceSearch':U).
The SDO source code will now run when no compiled code (r-code) is found.