FireDAC.Comp.DataSet.TFDDataSet.UpdateAttributes
Delphi
procedure UpdateAttributes;
C++
void __fastcall UpdateAttributes();
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Description
Updates the changes to the client default expressions and auto-incrementing fields.
Use the UpdateAttributes method to update the changes to the default expressions and auto-incrementing fields made after the dataset was activated.
The fields' default expressions that are in the DefaultExpression property or the auto-incrementing fields that are TFDAutoIncField properties are automatically updated when an Open call is made to the dataset. The changes to these properties for an active dataset are not updated automatically.
Example
FDQuery1.FieldByName('ObjGUID').DefaultExpression := 'NEWGUID()';
FDQuery1.UpdateAttributes;