Deleting a Record (Magic xpa 3.x)
When the initial mode of the task is Modify and the record is to be deleted, either by selecting the Delete Line from the Edit menu or by clicking F3, or by making the Force Record Delete condition True, the engine activates the following Delete procedure:
-
If the record has not been modified, Magic xpa executes the Record Suffix only once, in Delete mode.
-
If the record has been modified or the Force Record Suffix is True, Magic xpa executes the Record Suffix in Modify mode, to perform any Update operation defined there and complete the processing logic; and executes the Record Suffix a second time in Delete mode, to perform any delete-related operations, such as deleting chained records in one-to-many relations, or Update operations by using the Incremental mode.
When the initial mode of the task is Delete (for Batch and non-interactive Rich Client tasks), the engine activates the following Delete procedure:
-
For Batch tasks, Magic xpa executes the Record Suffix only once, in the Delete mode.
-
For non-interactive Rich Client tasks, Magic xpa executes the Record Suffix in Modify mode and then in Delete mode. (This is because non-interactive Rich Client task always run as if Force Record Suffix is True.)