RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetValuesList.OnPrepareDataSet Event

Occurs before the dataset values list uses its associated dataset.

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

Write an OnPrepareDataSet event handler to prepare the associated dataset before this component fetches names and values from it. This lets you customize the data for each incoming request. For example, you can use this event to set query parameters based on parameters in the current HTTP request and then execute the query. (Use the global Web context to obtain information about the current HTTP request.) 

TCustomDataSetValuesList generates an OnPrepareDataSet event the first time the application reads the DataSet property for a new HTTP request. 

 

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