|
AnyDAC
|
Actualize changes to the client default expressions and auto-incremental fields.
Use UpdateAttributes method to actualize changes to the default expressions and auto-incremental fields made after dataset was activated.
The fields default expressions that are in TField.DefaultExpression property or auto-incremental fields that are TADAutoIncField properties, are actualized automatically at dataset Open call. The changes to these properties for an active dataset are not actualizing automatically.
procedure UpdateAttributes;
Specifying Default Values, UpdateConstraints, TField.DefaultExpression, TADAutoIncField
ADQuery1.FieldByName('ObjGUID').DefaultExpression := 'NEWGUID()';
ADQuery1.UpdateAttributes;|
What do you think about this topic? Send feedback!
|