Global Script - Using DataSource Events
The DataSource object exposes methods that are similar to events when used inside the global script. The main purpose of this object is to allow access to non-ADO compatible databases.
If you want to use a non-ADO compatible database as a data source, click on receivers list or black lists in the project tree and choose add a list. Then, during the wizard select the I don't have a database, create one for me option. Once the list is created, check the "Use global script to access data source" option from the list properties box and, finally, edit the global script using the following events:
Object Event Description
DataSource AddNew Called when creating a new data record from the application.
DataSource BOF Beginning Of File status. True if current record position before first record.
DataSource CancelUpdate Called when a record modification is cancelled.
DataSource CanDelete Record deletion status. True if record can be deleted.
DataSource CanMovePrevious Ordering status. True if record can be moved backwards.
DataSource CanUpdate Record update status. True if record can be updated.
DataSource Close Closes connection to the data source.
DataSource Delete Deletes the current record.
DataSource EOF End Of File status. True if current record position after last record.
DataSource GetRowCount Retrieves the total number of records.
DataSource Move Specifies the new position of the record, upwards or backwards.
DataSource MoveFirst Moves record to first position.
DataSource Open Opens connection to the data source.
DataSource Update Saves changes made to the record.