RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterHiddenFieldsList Class

TAdapterHiddenFieldsList maintains a collection of name/value pairs that an adapter includes as hidden fields in an HTML form.

Pascal
TAdapterHiddenFieldsList = class(TInterfacedObject, IAdapterHiddenFields, IIterateIntfSupport);
C++
class TAdapterHiddenFieldsList : public TInterfacedObject, public IAdapterHiddenFields, public IIterateIntfSupport;

WebAdapt

Adapter components create instances of TAdapterHiddenFieldsList to store the name/value pairs they include as hidden fields in HTML forms. Each entry in the list has a field name and a value for that field. The adapter uses the methods of TAdapterHiddenFieldsList to add name/value pairs to the list, based on its hidden field options. When an adapter page producer generates a form using the adapter, it includes hidden fields for every name/value pair in the list. Those hidden fields are then included in any request that originates from the resulting HTML form, so that the adapter and its subcomponents can access those values to respond to the request. 

For example, dataset adapters that have a Mode property that indicates whether the form is used for read-only browsing, inserting a new record, editing an existing record, or generating a query. The adapter includes the current mode as a hidden field. When the WebSnap application receives a message from the HTML form with that hidden field, the adapter can reestablish the correct mode for processing the request. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!