Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Print Templates Table

The Print Templates table is a background table that holds a record for each print template used by the Contracts table or other system tables. It also keeps track of the Version Number of the attached print template document, and defines which Contract Types can use the print template in the Available for Contract Types field.

Use Case

Print Templates can be created and edited by admins and Contract Managers. The ID, Title, Template File, and Version Number fields are pulled into the Contracts table as a link to selected fields from another table. These are filtered to print templates whose Available for Contract Types field contains the Contract Type selected in the current Contract record. If multiple print templates are available for a Contract Type, the default value for the Print Template to Generate in the Contract is matched to the Default Print Template Title and Print Template File fields of the selected Contract Type.

Inserting Variables into Print Templates

Print templates may include field variables from the table on which the template is run, as well as from any table in the system.  For instance, a template might have the text $contract_start_date in the place where the start date of the contract should appear.

It may also pull in clauses from the clause library without creating a link to that clause within the contract.  A special syntax is used for such variables:

$field_from_other_table(clause,41,clause_text)  is used to indicate that the Clause Text field (clause_text is the field name) for record with ID 41 in the Clause table should be inserted into the print template at this position.

Ownership

Print Template records are owned by their creator. Specifically, a Print Template record is owned by the user whose Login matches the Creator Login field.

  • No labels