Kbase P123905: Shared variable in smartObjects causes errors at design time
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/9/2007 |
|
Status: Unverified
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
SYMPTOM(s):
SmartObject added to container object (SmartWindow, SmartFrame)
SmartObject contains SHARED variable definition
Container contains NEW SHARED variable definition
Program runs as expected at runtime
Opening container object in AppBuilder
<program> Shared variable <variable> has not yet been created. (392)
SmartObject instance does not display correctly
CAUSE:
This is expected behavior.
For AppBuilder to work correctly, a different procedure hierarchy is in effect at design time. Because of this the container's procedure is not the procedure which instantiates the smartObject, therefore the smartObject can not find the NEW SHARED variable definition
FIX:
This can not be avoided.
Note that using shared variables to pass data between smartObjects is considered to be a bad practice.