RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetAdapterRefreshRowAction Class

TDataSetAdapterRefreshRowAction refetches the current field values for the dataset record specified in the current HTTP request.

Pascal
TDataSetAdapterRefreshRowAction = class(TCustomDataSetAdapterRowAction);
C++
class TDataSetAdapterRefreshRowAction : public TCustomDataSetAdapterRowAction;

Add TDataSetAdapterRefreshRowAction to a dataset adapter (TDataSetAdapter) to support HTML forms that let users re-fetch database information to reflect the current value in the associated dataset. When this action is executed, it sets the mode of the parent adapter from the value specified in the current request and positions the dataset on the record specified in the current request. This allows forms that include the adapter to represent the current values of the fields in the dataset. If the request specifies insert mode, this action first posts the new record to the dataset. 

Server-side script addresses this action as the 'RefreshRow' action of the parent adapter. By default, this action is visible (included in HTML forms) regardless of the mode of the parent adapter. This action is included by default when the adapter is used to build forms that represent a single database record. 

 

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