RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.GetKeyParamStrings Method

Retrieves a list of fields that the dataset adapter uses to locate records, along with their current values.

Pascal
procedure GetKeyParamStrings(AValues: TStrings);
C++
__fastcall GetKeyParamStrings(TStrings AValues);

GetKeyParamStrings 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. When the adapter receives requests from forms containing those hidden parameters, it assigns them to the LocateParamsList property. 

Unlike the GetKeyParams method, GetKeyParamStrings retrieves only the key field names and values for this adapter's dataset, and not for any other datasets that may be linked to it in a master/detail relationship. 

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

GetKeyParamStrings calls GetKeyFields method to obtain a list of fields for which to create parameters. For each key field, it generates a string of the form 'name=value', where name is the field name and value is the value of the field's AsString property. 

 

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