RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.GetKeyFields Method

Returns a string listing the fields that this adapter uses to locate records.

Pascal
function GetKeyFields: string;
C++
__fastcall AnsiString GetKeyFields();

GetKeyFields generates the list of fields that are required to uniquely identify records in this adapter's dataset. These fields and their values are then used to create hidden parameters that are added to HTML forms. When the adapter receives requests from forms containing those hidden parameters, it assigns the parameters to the LocateParamsList property. 

GetKeyFields returns a semicolon-delimited list of fields that identify records in the adapter's dataset. 

This method first queries all of its child field components, building a list of all fields that include the ffInKey flag in their FieldFlags property. If none of the child field components include the ffInKey flag, GetKeyFields obtains an IProviderSupport interface from the associated dataset and calls its PSGetKeyFields method. 

 

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