Using data source 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.

When using this object, you need to check the Use global script to access data source option from the project properties box.

The recommended method to customize the code for non-ADO compatible databases is to create your project checking the I don't have a database, create one for me option in the project wizard, and edit the global script from the global view using the following events:

Object Event Description
DataSource AddNew Called when creating a new data record from eMill.
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.


© eMill 2001-2015. All trademarks property of their owners.