RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterField.ImplGetNeedPrevValue Method

Provides the underlying implementation for the GetNeedPrevValue method.

Pascal
function ImplGetNeedPrevValue: Boolean; virtual;
C++
virtual __fastcall Boolean ImplGetNeedPrevValue();

GetNeedPrevValue calls ImplGetNeedPrevValue to determine whether an HTML form should include a hidden field that stores this field's value. This method returns true if the parent dataset adapter is in edit mode and this field's FieldFlags property includes ffInOrigValues. Otherwise, ImplGetNeedPrevValue returns false. 

By including the current field value as a hidden field when the dataset adapter is in edit mode, this field ensures that update requests from the HTML form include sufficient information for locating the record that should be updated. When the dataset adapter is in any other mode, there is no need to locate a particular record in the dataset. 

 

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