TcxSchedulerDBStorage.OnGetEventGeneratedID Event
Fires when the details on a new user event have been posted to the database and a new unique identifier has been generated but not yet assigned to the new user event.
Declaration
property OnGetEventGeneratedID: TcxSchedulerGetEventGeneratedIDEvent read; write;
Remarks
In the case of concurrent access to the data store by multiple transactions when a batch of user events is posted to the database there is no guarantee that the cursor will be set to the record associated with the user event.
Implement a handler for the OnGetEventGeneratedID event to synchronize the new user event object with the corresponding record in the dataset.
The Sender parameter specifies the storage manager component.
The AEvent parameter specifies the newly created user event that was recorded in the data store.
The EventID parameter specifies the unique ID associated with the new user event.
Note
the OnGetEventGeneratedID event only fires if the GenerateGUIDForID property is set to False.