Consultor Eletrônico



Kbase P168945: Is there a way to set the initial value of a field without creating a new record
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/07/2010
Status: Unverified

GOAL:

Is there a way to set the initial value of a field without creating a new record

GOAL:

Is there a way to reset the initial value of a field outside of the transaction that updated the value

FACT(s) (Environment):

All Supported Operating Systems
Progress/OpenEdge Product Family

FIX:

There is no way to automatically reset the value. The initial value is only assigned when creating a new record and value is copied to the BUFFER field.
A suggestion is to create a temp-table as LIKE and copy the value of a recently created row.

Alternatively, the buffer-field:INITIAL attribute can be used to obtain the initial values from the schema definition for the fields that do not need to be changed. Application code can then be written to determine the correct values for those fields that do need different initial values when the new row is created.