Trace: • DataBook Events
Table of Contents
The IDataBook Iinterface defines the possible events that can occur while using DataBooks. These events are triggered on different occasions. The following instructions show the possible event triggers and the exact event sequence.
Triggers
Saving Records
Discarding Changes
Inserting Records
Editing Records
Deleting Records
Row Change
Column Change
Updating Data
Row Change in Master
Examples
Insert
Event | Description |
---|---|
BEFORE INSERTING |
|
AFTER INSERTING | Set default values |
BEFORE INSERTED |
|
AFTER INSERTED | Process server-tier data |
Update
Event | Description |
---|---|
BEFORE UPDATING | Manual locking |
AFTER UPDATING | Control visibility or en-/disable components. For example, when editing is not permitted |
BEFORE UPDATED |
|
AFTER UPDATED | Process server-tier data |
Delete
Event | Description |
---|---|
BEFORE DELETING |
|
AFTER DELETING | Call saveSelectedRow() at the DATA_SOURCE Isolation Level |
BEFORE DELETED | If writeback is deactivated, a server action can be called to perform the deletion |
AFTER DELETED | Calculate sums |
Restore
Event | Description |
---|---|
BEFORE RESTORE | Throw exception to NOT discard changes |
AFTER RESTORE | Update GUI/status |
Value Changed
Event | Description |
---|---|
VALUE CHANGED |
|
Row Selected
Event | Description |
---|---|
BEFORE ROW SELECTED | Throw exception to prevent leaving the row |
AFTER ROW SELECTED | Control visibility or en-/disable components after a row change |
Column Selected
Event | Description |
---|---|
BEFORE COLUMN SELECTED | Throw exception to prevent leaving the column |
AFTER COLUMN SELECTED | Control visibility or en-/disable components after a column change |