RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapter.UpdateRecords Method

Updates the adapter's fields with the field values passed in an HTTP request.

Pascal
function UpdateRecords(AActionRequest: IActionRequest = nil): Boolean; virtual;
C++
virtual __fastcall Boolean UpdateRecords(IActionRequest AActionRequest = nil);

Call UpdateRecords to update the adapter's fields with the field values passed in an HTTP request. Typically, UpdateRecords will be called by an adapter action that submits an HTML form. UpdatesRecords first verifies that the end-user has rights to modify the adapter by calling CheckModifyAccess. CheckModifyAccess will raise an exception if access is denied. Next, UpdateRecordsGetAnyChanges is called to determine whether the values in the HTTP request represent changes to the adapter fields. If there are changes then UpdateRecordsValidateValues is called followed by UpdateRecordsUpdateValues. Exceptions raised during validation or update are added to the adapter's errors object. UpdateRecords returns true if the errors object contains no errors. The AActionRequest parameter is optional. 

 

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