|The New ‘Delete Record’ Confirmation Dialog|
Unless the collection designer has created sequences that suppress dialogs, deleting records in Helix brings up the Delete Record confirmation dialog. This technote documents the macOS version of that dialog, which first appeared in 6.2b9 (5775).
There are many variations possible when deleting records in Helix. Records can be deleted from entry views and list views, both of which may or may not contain subforms. When subforms are present, the collection designer has the ability to control which sets of record data (the host form and various nested subforms) are to be deleted from the view.
|Notes & Improvements||
When rewriting this dialog for macOS, we took time to factor in many improvements:
|New macOS Dialogs||
The Delete Records dialog appears in various forms, depending on the construction of the view and the data being deleted. Here are some representative samples:
Entry View: One Record to Delete
When deleting on an entry view, the button reads “Delete” and the message states that 1 record will be deleted from the relation the view is in.
This version appears when deleting from an entry view, or when an entry view contains subforms that are set to not delete their data, or when the total number of records to be deleted is one.
Deleting from One Relation
When more than one record will be deleted, the button reads “Delete All” and the message states the number of records to be deleted from the relation the data is in.
This version appears when deleting from a list, or when an entry view is set to not delete the host view.
Deleting from Multiple Relations
When records from more than one relation will be deleted, the message expands to show the number of records to be deleted from each relation that will be affected. Each subform on the template is represented by its own line, so a single relation may appear more than once, depending on the collection design.
This version appears when deleting from a list or entry view with one or more subforms, where two or more templates are set to delete data.
No Records to Delete
When no records will be deleted, the dialog states this fact in unambiguous terms. The button reads OK (or Continue when the delete occurs within a sequence) and becomes the default button.
This version appears when deleting from a list with no records or when an entry view is set to not delete the host view and all subforms contain no records.
|Design Mode Control||
When working on a view with one or more subforms in Design Mode, Classic Helix inserted checkboxes in the delete dialog, giving the collection designer control over which data sets could be deleted from the view. This interface was always awkward, as it required that you actually delete data in order to set the properties of the view.
Helix RADE no longer uses the checkbox interface for designating which subforms are to be deleted, so the dialog now has a consistent appearance in all modes.
RADE now incorporates the option for designating which data sets are to be deleted directly into the subform linking setup. These settings are found in the View Inspector, and are available via AppleScript.