The Alert Types service stores information about the available Alert Types in Aptify. When certain situations occur (for example, if a record has a pending change or when a person's credit status is on hold), an alert can be associated with the record to notify users so they can act appropriately. When an alert is in effect for a record, the Alerts icon turns red on the record's toolbar to notify all users that an alert exists for the record. A developer can write an object or use a script (such as a SQL statement) to define the logic which will trigger the alert.

Aptify includes one default Alert Type that is used in conjunction with the Pending Changes functionality (see Administering Pending Changes for details about this feature). See Using the Save as Pending Button for more information about how the record alert functionality works with this feature from a user's perspective.

Follow these steps to create an Alert Type record:

  1. Open a new record from the Alert Types service.
  2. Enter a name for the Alert Type in the Name field.

    The Default Importance, Display In Message Box, Display In Tool Tip, Allows Clearing, View, List, and Event Definition fields are reserved for future use.



  3. Specify the Icon from the Object Repository to use for this type of alert.
  4. Select the Alert Type's Scope.
  5. If you have selected Entity as the scope of the alert type, specify an entity in which you want to associate the alert type in the Entity ID field.
  6. If you want to specify a specific date range for when this alert type is available, enter a Start Date and an End Date in the field provided.
  7. Confirm that the Status drop-down menu is set to Active.
  8. Specify the Rank for the Alert Type.
  9. If you want the information about an alert to display when a user first opens a record that has an associated alert of this type, enter a value of 1 in the Display Alert On Load field.
  10. If you have developed an object to define the behavior of this alert type, select the Component Plug In tab and enter the following:
    1. Locate the Object which defines the alert type by clicking the button to the right of the Object field.
    2. Enter the assembly name for the alert type in the Assembly field.
    3. Enter the name of the class for the alert type in the Class field.
       
  11. If the behavior of the alert type is defined through a script (such as a SQL statement), select the Source Script tab and enter the following:
    1. Enter a name for the script in the Script Name field.
    2. Specify the script's type in the Script Type field. By default, Aptify includes a Script Type called Alerts to be used for these types of scripts. See About the Script Types Form for more information about script types.
    3. Enter the language of the script in the Script Language field. See the About the Script Type Languages Form for more information about coding languages.
    4. Enter the text of the script in the Script Text box.  

      Source Script Tab
  12. Save and close the record.

    Aptify users must close and reopen the Aptify application before a new Alert Type or any changes to an existing Alert Type take effect.