RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.EncodeActionParams Method

Writes name/value pairs that represent this adapter's state.

Pascal
procedure EncodeActionParams(AParams: IAdapterItemRequestParams); override;
C++
virtual __fastcall EncodeActionParams(IAdapterItemRequestParams AParams);

This method assembles the parameters (name/value pairs) that the adapter needs to add to an HTML form so that request messages that originate from that form can correctly restore this adapter's state. This allows the dataset adapter to recapture dataset state information (such as the current record) as well as the current page when the adapter supports paging. 

AParams is the interface for an object to which the adapter writes parameter values. 

ExtractRequestParams calls on the EncodeActionParamsFlags method to fill the list with parameters for locating the current record and current page. 

 

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