FireDAC.Comp.DataSet.TFDDataSet.UpdateAttributes

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDDataSet

Delphi

procedure UpdateAttributes;

C++

void __fastcall UpdateAttributes();

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;

See Also