Consultor Eletrônico



Kbase 15601: set new initial-values without changes in the dictionary V8
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
set new initial-values without changes in the dictionary V8

DRAFT COPY - Currently under review and edit.

INTRODUCTION:
=============
In V8 it is possible to set new initial values for database fields
however you want. The entries in the data dictionary won't be
replaced.

There is a temp-table called adm-initial-table, where all database
fields are stored with their initial values from the dictionary.
Every time a record gets created, these entries are used.

PROCEDURAL APPROACH:
====================
The following is an example of how to set an initial value for the
city field of the customer-table (db sports):

Create a local-add-record with the following code before the
'run dispatch ...' :
find first adm-initial-table no-error. /* check if used */
if not available adm-initial-table then /* if not used */
do:
create adm-initial-table.
assign adm-initial.table.city = "Trier".
/* here you can assign values to the db-fields */
end.

This KB is VALID ONLY for V8.0. Starting from V8.1 definition of
temporary table adm-initial-table was removed from ADM.

Progress Software Technical Support Note # 15601