Search found 3 matches

by omul_rau
19.01.2006, 17:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values on new record
Replies: 6
Views: 1531

change the TZAbstractRODataset.DoOnNewRecord (in ZAbstractRODataset.pas) for the using of TField.DefaultExpresson: ............... begin for I := 0 to Fields.Count - 1 do begin with Fields[I] do begin vStr := UpperCase(Trim(DefaultExpression)); if vStr <> '' then ................ In fact the Filed....
by omul_rau
16.01.2006, 20:55
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values on new record
Replies: 6
Views: 1531

Yes I can do this. But is better that the default value to be set to a field and the customer can modify this value. It is an ellegant solution for sequences too. I found in ZDbcCachedResultSet.pas a method: CalculateRowDefaults. How can I use this to set fields values to default when a new record i...
by omul_rau
16.01.2006, 12:46
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values on new record
Replies: 6
Views: 1531

Default values on new record

Is it any solution to get default values for a field on new record ?
For a field that must be not null, the server default values is never used.

PS: I use zeos with postgres.
10x
Marius