DBAdapt.TBaseDataSetAdapterField.CheckOrigValue
Contents |
Delphi Information
From DBAdapt.pas
procedure CheckOrigValue(AActionRequest: IActionRequest; AFieldIndex: Integer);
Unit: DBAdapt
Type: method
Visibility: protected
Member Of: TBaseDataSetAdapterField
C++ Information
From DBAdapt.hpp
void __fastcall CheckOrigValue(System::DelphiInterface<Adaptreq::IActionRequest> AActionRequest, int AFieldIndex);
Unit: DBAdapt
Type: method
Visibility: protected
Member Of: TBaseDataSetAdapterField
Description
Ensures that the current value of this field is the same as the original value.
Dataset adapter fields call CheckOrigValue internally when the field value must be the same as the original field value. The original value is stored as a hidden field on HTML forms when the FieldFlags property includes ffInOrigValues. If the current value differs from the original value, CheckOrigValue raises an exception.
AActionRequest is interface of the action request object. CheckOrigValue can use this interface to obtain information about the current request (such as the value of the hidden field that contains the original value).
AFieldIndex is the index of this field in the set of field values that AActionRequest maintains.
CheckOrigValue calls the ImplCheckOrigValue method, which performs the actual checking.