RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapter.UpdateFieldsValidateValues Method

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

Pascal
procedure UpdateFieldsValidateValues(AActionRequest: IActionRequest; AAdapterFields: TObjectList); virtual;
C++
virtual __fastcall UpdateFieldsValidateValues(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, th exception messages are added to the Errors object and validation continues. OnBeforeValidateFields and OnAfterValidateFields are at the beginning and end of this method. 

 

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