RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomResolver.InitKeyFields Method

Sets the provider flag pfInKey on all key fields in a delta data packet.

Pascal
procedure InitKeyFields(Tree: TUpdateTree; ADelta: TPacketDataSet); virtual;
C++
virtual __fastcall InitKeyFields(TUpdateTree Tree, TPacketDataSet ADelta);

InitKeyFields is used internally to mark fields from a delta packet that can be used to uniquely identify records in the underlying dataset. 

The Tree parameter is the internal TUpdateTree that the resolver uses to store information about the delta packet. The ADelta parameter is the delta packet of changes to apply. For every field in this delta packet that acts as a key value to uniquely identify records, InitKeyFields adds pfInKey to its ProviderFlags property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!