RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.GetRecordKeys Method

Retrieves a list of field values that the dataset adapter uses to locate records, along with information for formatting hidden parameters from this values.

Pascal
procedure GetRecordKeys(AValues: TStrings; var AFullyQualify: Boolean);
C++
__fastcall GetRecordKeys(TStrings AValues, Boolean AFullyQualify);

GetRecordKeys fills out a TStrings object with the current values of all fields in this adapter's dataset that are needed to uniquely identify records. These name/value pairs are then added as hidden fields to HTML forms. GetRecordKeys also returns an indication of whether field names should be qualified by the name of the adapter when formatting the hidden fields for inclusion in the HTML form. 

AValues is a string list to fill with the names and values of all key fields in this adapters dataset. 

AFullyQualify returns true if the field names must be qualified by the name of this adapter. 

GetRecordKeys delegates the task of providing values for AValues and AFullyQualify to the ImplGetRecordKeys method. 

 

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