RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDispatcher.EncodeAdapterItemRequestAsFieldValue Method

Returns the hidden fields that can be added to an HTML form to represent the parameters of a request to an adapter action or image field.

Pascal
function EncodeAdapterItemRequestAsFieldValue(AHandler: IUnknown; AOptions: TAdapterItemRequestParamOptions): string;
C++
__fastcall AnsiString EncodeAdapterItemRequestAsFieldValue(IUnknown AHandler, TAdapterItemRequestParamOptions AOptions);

Adapter components call EncodeAdapterItemRequestAsFieldValue to encode the action or field parameters as they should appear as field values in form submissions. The resulting parameter string has a form such as '?param1=value1&param2=value2'. 

AHandler is the interface of the adapter whose action or image field requires the parameters. 

AOptions is a set of flags that indicate what types of parameters to include. 

EncodeAdapterItmRequestAsFieldValue returns the parameter string. 

 

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