RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapter.UpdateRecordsValidateValues Method

Validate the adapter's field values passed in the HTTP request.

Pascal
procedure UpdateRecordsValidateValues(AActionRequest: IActionRequest; AAdapterFields: TObjectList); virtual;
C++
virtual __fastcall UpdateRecordsValidateValues(IActionRequest AActionRequest, TObjectList AAdapterFields);

UpdateFieldsValidateValues loops through the adapter fields passed in the AAdapterFields parameter, calling the ValidateValue function. Adapter fields raise an exception to indicate a validation error. When an exception occurs, the exception message is added to the Errors object and validation continues. OnBeforeValidateFields and OnAfterValidateFields are at the beginning and end of this method. 

 

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