Using DEFAULTS

DaveH

Member²
I have a table with a number of fields defined with DEFAULT value. I expected to see those default values upon inserting a new record, but they don't seem to show up until the record is posted. Is there any way to force these default values to show up on "after insert" without coding the defaults in Delphi (i.e. just using the table definition)?
 
You can set TOracleDataSet.OracleDictionary.DefaultValues to True. When a new record is created in the dataset, the default column values of the table will immediately be present.

------------------
Marco Kalter
Allround Automations
 
Back
Top