Kbase P8407: Error running the SmartDataObject Without Compiled Code (r-code)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/11/2009 |
|
Status: Verified
SYMPTOM(s):
Error running the SmartDataObject Without Compiled Code (r-code)
<sdo-file-name> SmartDataObject has no AppServer partition defined and is running locally without proper database connection(s)
FACT(s) (Environment):
Windows
Progress 9.1x
OpenEdge 10.x
FIX:
In order to be able to successfully run an SDO from the source code, it is necessary 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 for the SDO's container object and insert the following line of code before standard behavior (RUN SUPER):
DYNAMIC-FUNCTION('setRunDOOptions':U, INPUT 'sourceSearch':U).
Set the RunDOOptions to "sourceSearch" in constructObject so that source code will be run when no compiled code (r-code) is found.