Planning Alerts: How Many Do You Need?
Potentially, you can create an alert for each separate alert message which you want to display, but this is commonly unnecessary.
You can describe a message for an alert at run time so before it is displayed to the operator. That means a single alert can be used for displaying several messages that providing the available buttons are appropriate for responding to each of these messages.
Create an alert for every combination of:
- Alert style needed
- Group of available buttons (and labels) for operator response
For instance, an application might needs on e Note-style alert with a single button (OK) for acknowledgment, one Caution alert with a same button, and two Stop alerts in which each give a different combination of buttons for a reply. You could then assign a message to the appropriate alert before its show, by the SET_ALERT_PROPERTY built-in procedure.