More information

System Triggers

Tools World

Site Specific Notes

Database Trigger Behaviors

In Millennium, when data is entered into one of the standard html forms and submitted to the database, software triggers fire to make certain behaviors or additional data manipulation occur. These triggers account for most of the behind the scenes linkage and automatic actions within Millennium. Some of the trigger behaviors are the same for every data row, regardless of the data table. These are described below as the Standard Triggers. Some behaviors are standard for any data table row that may have links to or from another data row. These are described below as Linking Triggers. Beyond that, many data rows employ triggers that are specific to that data table. Each data table is listed below and the trigger behaviors for each are described.

SQL Server and Oracle systems use completely independent sets of triggers with different internal techniques, however, the end result for each Millennium system will be the same. This document does not describe each step performed by each trigger, but rather is a description of the behaviors that occur when the triggers execute.

For a listing of the SQL Triggers and the Oracle Triggers, see System Triggers.

Standard Triggers

There are certain standard trigger behaviors that will apply to each of the data tables in the Millennium database.

If you enable audit logging for a table, the standard triggers write a row to the audit_{tablename} table, where tablename is the name of the table for which auditing is enabled. Millennium uses the audit table to track the changes made to fields in the table. For more information about the data tables for which Millennium system administrators or the database administrator can configure audit logging, see Data Tables Available for Audit Logging. For more information about the audit_{tablename} table, see audit_{tablename} Field Descriptions.

Insert

Update

Delete

Linking Triggers

Note: If screens have been customized to include any Custom Lookup table (lookup1, lookup2, lookup3) and those screens are in turn used during the linking process, the custom lookups will only display on the primary row and not the secondary rows.

Profile Data Table Triggers

Actions

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Addresses

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Attachments

Attribute

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Attstrt (Start date) must be less than attrstop (Stop date) date.

Attrtypenm (Attribute Type value) is filled in from Attribute Types lookup table.

Basic Data (see Corebio)

Benefits

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

The bennumber (number of benefits) is set equal to benefit_type.table_amt1 (Amount 1 in the lookup table).

Citizenship (see Nationality)

Comments

This data table uses only the standard triggers.

Corebio

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Correspondence

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Calls the stored procedure name_firstrow using corrsentid to get the first name row and populates the name fields in the Correspondence row.

Coverage

Credit Card

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Calls the stored procedure creditcardvalidation to verify that the form of the data entered corresponds to the credit card type that was entered.

Death

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Demographic

This data table uses only the standard triggers.

Dues Transactions

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Education (see School)

Employment (see Jobs)

Financial

This data table uses only the standard triggers.

Gift in Kind

The standard triggers rules and the linking triggers rules apply to this table.

Giving

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Honoree

The standard triggers rules and the linking triggers rules apply to this table.

Internet Address

The standard triggers rules and the linking triggers rules apply to this table.

Jobs

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Media

This data table uses only the standard triggers.

Membership

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Calls the stored procedure name_firstrow using the membgiveid to get the first name row and then populates the name fields in the membership row.

Names

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Nationality

This data table uses only the standard triggers.

Payments

This data table uses only the standard triggers.

PG Rating

The standard triggers rules and the linking triggers rules apply to this table.

Phone Numbers

This data table uses only the standard triggers.

Planned Giving

Proposals

Quid pro quo

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Rating

This data table uses only the standard triggers.

Receipts

The standard triggers rules and the linking triggers rules apply to this table.

Relationships

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Research Sources

The standard triggers rules and the linking triggers rules apply to this table.

School

The standard triggers rules and the linking triggers rules apply to this table.

Screening

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Securities

The standard triggers rules and the linking triggers rules apply to this table.

Solicitor

The standard triggersrules and thelinking triggers rules apply to this table, along with the following:

Calls the stored procedure name_firstrow using the gsolsolid to get the first name row and populate the name fields in the solicitor row.

Subscription

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Sets the subissues (number of issues) equal to the publication_name.table_amt1 (publication name lookup table field amount 1).

Summaries

This data table uses only the standard triggers.

Tasks

The standard triggers rules and the linking triggers rules apply to this table, along with the following:

Tracking

The standard triggers rules and the linking triggers rules apply to this table.

Triggers on the Millennium System Tables

Alerts

On Insert and Update, if the alertactv is set to 'Y, set alertactv on all other alert rows to 'N'.

Top of Page