| Inside Time Matters: Automatic Relationships Demystified |
| Written by Steve Stockstill |
|
One of the coolest features of Time Matters is its ability to relate data within itself. As significantly important as this functionality can be, it can also be confusing. The implementation of relationships has inadvertently contributed to Time Matters’ reputation for being complicated to understand. There are two types of relationships in Time Matters: Automatic and Specified. Let’s go inside these relationships by starting with the Automatic Relationship. Automatic Relationships are, by definition, a linkage or connection between subordinate data types (Event, ToDo, Note, Document, etc) and their Parent Contact and/or Matter. In database terminology this is referred to as a ONE:MANY relationship (ONE parent to MANY children). In specific terms, one Matter may have many Event or Document records assigned to it. Automatic Relationships are the simplest to understand, especially when you consider how these relationships are managed. Automatic Relationships get their name from the implementation and methodology Time Matters uses to create and manage them. Simply by entering the Contact and Matter on any form, an automatic relationship is created and managed by Time Matters. These entries are on all data entry forms located in “Area One” and, most notably, referred to as the “Regarding Area” as illustrated below.
Automatic relationships are stored in the RelateA database table. This table is completely perishable and may be recreated and maintained in the background from underlying record data. The RelateA table has only two columns: MID and SID. These columns hold the sysId (record identifier) of the Master and Subordinate records. The illustration below represents the RelateA table values of a Document record with a Contact and Matter in the regarding line. In this scenario, the Document is the Master ID (MID) and the Contact and Matters are the Subordinate IDs (SID). In the example above, the Document record will also store the references to the Contact and Matters in the CON_ID and MAT_ID fields (respectively). In fact, these values (con_id and mat_id) are used to recreate the automatic relations table (RelateA) in the uncommon event a database has become impaired or corrupted.
|









