RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterInputField.OnUpdateValue Property

Occurs when the WebSnap application updates this adapter field's value based on in incoming request.

Pascal
property OnUpdateValue: TDatasetAdapterFieldValueEvent;
C++
__property TDatasetAdapterFieldValueEvent OnUpdateValue;

Write an OnUpdateValue event handler to provide your own mechanism for updating the corresponding database field when the WebSnap application updates this adapter field's value. If you supply an OnUpdateValue event handler, the dataset adapter field assumes you have handled the update and does not write the new value to the associated dataset field. If there is no OnUpdateValue event handler, the dataset adapter field writes the field value to the associated dataset field.

Note: TBaseDataSetAdapterInputField defines but does not generate this event. Instead, descendant classes generate this event when updating the adapter field value. If you create your own TBaseDataSetAdapterInputField descendant, you must generate this event from your implementation of the UpdateValue method.
 

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