Diman
Admin
 Admin
| Posts: 1495 |  | Karma: 19 |
|
RE: Default field values
|
|
Posted: 2000/07/22 07:12 |
|
|
|
|
Hi !
There are two different ways:
1) You can assign default expressions to TField.DefaultExpression. For example, you can read defaults from Oracle dictonary, using SQL: select data_default from all_tab_columns where table_name = :TabName and owner = :Owner and assign this values to fields. After that, NCOCI8 will assign after insert default values to fields.
2) If you want only refresh field values after posting insert to server, then set TField.AutoGenerateValue = arDefault for fields, that have default values. After that if this fields have NULL value, NCOCI8 will automatically reread they values from server after posting insert.
|
|