WebFOCUS Online Help > Managed Reporting Developer > Developing a Two-Way Email Template > Attaching a Two-Way Email Template to an Alert
This feature is available only at sites that have licensed and installed both ReportCaster and Two-Way Email. Two-Way Email is only available with ReportCaster.
A Managed Reporting Administrator or Developer can attach a Two-Way Email template to a ReportCaster Alert. The user is alerted when certain predefined data conditions are met, and can use the attached template to respond to the alert to request a report for more detail, to redistribute a report or parts of it to other interested people, or to take other timely action.
For the procedure on attaching a Two-Way Email template to a ReportCaster Alert using the Alert Wizard, see Creating an Alert.
The following example illustrates the basic steps required to attach a template to an alert. It assumes that you are familiar with the Alert Wizard and the creation of Two-Way Email templates. Alert response enables many event-critical activities other than the simple one illustrated here, including drill-down reporting or data source maintenance.
In this example, the user is alerted when the total coffee sales for store code R1019 exceed $1,000,000. You create this alert test in Step 3.
The alert to the user takes the form of a report showing the exact amount of coffee sales for store code R1019. You create this alert event (report) in Step 4.
Attached to the report is a template that prompts the user for another store code. You create this template in Step 2.
The user enters the store code of interest for comparison purposes, and receives a second report showing the coffee sales for the supplied store code. You create the second report in Step 1.
This report displays the coffee sales for a store code supplied by the user, who wants to compare that figure to the coffee sales for store code R1019.
TABLE FILE GGSALES SUM DOLLARS BY CATEGORY BY STCD WHERE CATEGORY EQ 'Coffee' WHERE STCD EQ '&STCD' END
Perform the following when creating the template:
TABLE FILE GGSALES SUM DOLLARS BY CATEGORY BY STCD WHERE CATEGORY EQ 'Coffee' WHERE STCD EQ 'R1019' WHERE TOTAL DOLLARS GT 1000000 ON TABLE HOLD END
TABLE FILE GGSALES SUM DOLLARS BY CATEGORY BY STCD WHERE CATEGORY EQ 'Coffee' WHERE STCD EQ 'R1019' WHERE TOTAL DOLLARS GT 1000000 END
For the Subject on the Distribution tab in the ReportCaster schedule, enter Coffee Sales Alert.
WebFOCUS |