RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapter.AddOrigValueHiddenFields Method

Defines hidden field(s) that pass the original values of adapter fields in the HTTP request when an HTML form is submitted.

Pascal
procedure AddOrigValueHiddenFields(AHiddenFields: TAdapterHiddenFieldsList);
C++
__fastcall AddOrigValueHiddenFields(TAdapterHiddenFieldsList AHiddenFields);

In order to ensure that the data associated with the adapter hasn't been changed by another user, descendant adapters may check that the current values of adapter fields are the same as the original values. For example, TDataSetAdapter raises an exception if the original values are not the same as the dataset's values. The hidden fields defined by AddOrigValueHiddenFields are added to an HTML form using the server-side script method HiddenRecordFields.WriteFields. 

 

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