Crystal Reports for Eclipse Designer Guide

IsAlertEnabled(alertName)

Description
Returns TRUE if the alert is enabled.
Arguments
  • alertName is the name of an alert (in quotation marks) that you've already created. Locate the available alerts in the Alert Names list.
  • Returns
    Boolean value indicating whether or not the alert is enabled.
    To enable or disable an existing alert, click Create Alerts on the Report Menu. Select the desired alert and click Edit. In the Edit Alert dialog box, select or clear the Enabled option.
    Examples
    If IsAlertEnabled("myAlert") Then
         AlertMessage("myAlert")
    Else
         "myAlert is disabled"
    
    Use this formula to display a message that lets report users know whether or not an alert is enabled. For instance, open the sample report called Alerting.rpt. Create the formula, replacing "myAlert" with "Sales" (which is the name of the alert in the sample report). Then drag the formula field into the Report Header section. By default, the Sales alert is enabled, so its alert message will appear in the Report Header. If you disable the alert (in the Edit Alert dialog box), the message displayed in the report will change to the "disabled" message that you specified in the formula.
    Comments
    Any formula that references an alert becomes a print time formula.



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/