Now that you've learned how to effectively filter the data in your report to show relevant information and ensure peak report performance, let's move on to how to clearly identify the key pieces of information in your report to your end user. Although this can be accomplished by using conditional formatting, there is an alerting feature inside Crystal Reports that allows for more interactive identification of the key data. A report alert is a custom notification created within Crystal Reports that is triggered when a predetermined condition is met. An alert is comprised of three integral parts:
Alerts serve the dual functions of bringing end-user attention to a certain condition being met and focusing end-user attention on specifically relevant data in a report thereby increasing user efficiency. Some examples of reports in which alerts could provide a benefit are outlined in Table 15.1.
Report alerts are triggered when the report is processed and the associated condition has been met. Once this condition is true, the alert message will be displayed. Figure 15.3 displays a triggered alert from within the Crystal Reports Designer. Figure 15.3. A report alert being triggered.Creating, Editing, and Using AlertsTo create or edit alerts in Crystal Reports, select the Report, Alerts, Create or Modify Alerts menu items. This dialog (shown in Figure 15.4) allows you create a new alert, edit existing alerts, and remove existing alerts. Figure 15.4. The Create Alerts dialog.After you have clicked the New Alerts button, the Create Alert dialog pictured in Figure 15.5 is displayed. Figure 15.5. Creating a new alert.Use the following steps to create the alert:
To see your alert in action, refresh the report with data that meets your alert condition, and triggered alerts will be displayed. Finally, not only are you notified that the alerts have been triggered, you can click the View Records button on the Report Alerts pop-up dialog to filter the report to show only those records that triggered the alert. This is a good way to draw attention to the key outliers in the data. Using Alerts in Crystal EnterpriseThe Report Alerts dialog displayed in Figure 15.3 is only available from within the Crystal Reports Designer. If you are delivering your reports via another mechanism such as the Web, alerts are handled differently. To have your end users take advantage of Crystal Reports alerting, you will need to either use Crystal Enterprise for report distribution or exploit the built-in alert functions (IsAlertEnabled(), IsAlertTriggered(), and AlertMessage()) within formulas you create in your report. For more information on Crystal Enterprise, see Hour 23. |