Consultor Eletrônico



Kbase P69511: How to populate a SDO based on a TEMP-TABLE and Calculated Field ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to populate a SDO based on a TEMP-TABLE and Calculated Field ?

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

FIX:

After adding the calculated field when creating your SDO add the following example code to the override of the initializeObject procedure in your SDO:

/* Code placed here will execute PRIOR to standard behavior. */

RUN SUPER.
FOR EACH customer:
CREATE rowobject.
BUFFER-COPY customer TO rowobject.
ASSIGN rowobject.calc = "anyvalue".
END.

/* Code placed here will execute AFTER standard behavior. */

Refer to the calculated field as you have defined when adding it, for example (rowobject.CALC, rowobject.CALC-2, etc..)