RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.OnPrepareDataSet Event

Occurs before the dataset adapter uses any information from its associated dataset.

Pascal
property OnPrepareDataSet: TNotifyEvent;
C++
__property TNotifyEvent OnPrepareDataSet;

Write an OnPrepareDataSet event handler to set up the associated dataset before the WebSnap application uses this adapter. For example, you can use an OnPrepareDataSet event handler to dynamically generate and execute a query. 

This event occurs when the Web module containing the dataset adapter is first activated, and whenever the WebSnap application changes the value of the Mode property.

Note: Do not confuse the this event with the Prepared property of many dataset components. This event allows the adapter to perform any tasks it requires to accurately represent its corresponding dataset. The Prepared property of a dataset component indicates whether the underlying database engine has initialized itself to represent a database query.
 

 

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