AnyDAC
ContentsIndexHome
PreviousUpNext
TADDataSet.UpdateAttributes Method

Actualize changes to the client default expressions and auto-incremental fields.

Group
Links

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;
ADQuery1.FieldByName('ObjGUID').DefaultExpression := 'NEWGUID()';
ADQuery1.UpdateAttributes;
What do you think about this topic? Send feedback!