Templates: Generated Documents

Templates: Generated Documents

Generated Documents

Generated Documents are licenses, permits , invoices, inspection reports, notices of various types (of intent to revoke a license, for example). They can be generated from within an activity, by a workflow, and can also be bulk downloaded for printing. Printing might be desired if a program area wants to send out snail mail notices, certified letters and so on.

This type of document uses system variables to capture MiEHDWIS content, and Word formatting and short programming snippets to maintain a consistent look for EGLE documents and to optionally display content that may not be present in the entity’s or activity’s record (examples include the 2nd line of an owner’s address, an entity’s co-owner’s information, or a septage hauler’s DBA).

Template Review Checklist

  1. Template passes Word Accessibility Checker

  2. Resulting pdf passes Adobe Accessibility Checker

  3. Resulting pdf passes Readability Order

  4. Resulting pdf passes Contrast check--WEBAIM check for contrast >4.5

  5. The title of the document is immediately below the first page Header and set as Heading 1. This should be the only use of Heading 1. (Exception if for 2 or more documents pushed together as a "Packet")

  6. For invoices: must be the same number of pages for printing. Must have blank space in upper right hand corner for ASC. Must have blank lower right corner (at least on odd pages) for barcoding. Avoid use of white space characters if at all possible

  7. Merging and splitting of table cells is not allowed

  8. All Tables have Alt Text

  9. All Images have Alt Text

  10. All text boxes have Alt Text--many readers cannot get at the contents of these boxes. DO NOT USE them. The only place we should have them is in the Mail to box to ensure the appropriate placement

  11. Mail to box should use standard placement and sizing for #10 envelope

  12. Check table sizing for expected data returned by variables. If exact row height is used, make sure that there is no awkward wrapping

  13. Default to 12pt Arial for Normal body text (11 if acceptable-in practice a lot of forms/reports use 10, avoid if possible)

  14. Use EGLE colors judiciously. Do not pick your own color palette (Amy has SOM color theme available)

  15. Test all scenarios so that every variable has been triggered at least once

  16. SME has signed off on template. And they have sought any additional approval needed from Management

  17. Since there is no place to document changes within MiEHDWIS, make sure there is a config ticket for tracking

  18. Check the document Info to make sure the title is appropriate and the author is "EGLE"

  19. Do not use tables solely for layout. Tables have header rows set to repeat and column headers have "First Column" checked in the Table Design tab

  20. Review content with staff. Ideally start from a document they've provided. Don’t try to update the content in place. It is usually harder to try and clean it up than it is to remove all formatting and start from plain text. (I usually roundtrip it through Notepad++). Do the same thing with variables. Oddities come along for the ride if you try to paste them from Confluence

Here you will find help on selecting and using variables to pull in MiEHDWIS information, using signatures, and pulling information from a dynamic form into a Generated Document.

Editing Generated Documents

Download Microsoft Word Document 

  1. Click on Maintenance. 

  2. Click on Templates. 

  3. Click on the template that needs to be updated.

  4. Click Download.

Edit Microsoft Word Document 

  1. Open the template in Microsoft Word.

  2. Edit the template. 

    1. For templates that display Error! Missing test condition. (see Word Field Codes, below)

  3. Save changes in folder that you can easily find. 

  4. Close the document.

  5. Test this document in a lower environment before uploading in Production

Re-Upload Edited Microsoft Word Document 

  1. While still on the Template Details window in MiEHDWIS, click Edit. 

  2. Click Choose File. 

  3. Locate file and click Open. 

  4. File name is now listed next to Choose File. 

  5. Click Save. 

  6. Confirmation appears, “Successfully updated template.” 

  7. It is strongly recommended that, after uploading the new template, you use the Generate Sample Document to give it a trial run. You will be asked to provide an entity ID and an activity ID. In both fields you can also start typing the entity or activity name to find what you want to use. Check over the sample to make sure everything populated as expected and that the format of everything looks the way you want it to.

I'm just going to add this here to be sure you both have it.  Template passes Word Accessibility Checker Resulting pdf passes Adobe Accessibility Checker Resulting pdf passes Readability Order Resulting pdf passes Contrast check--WEBAIM check for contrast >4.5 The title of the document is immediately below the first page Header and set as Heading 1 this should be the only use of Heading 1. (Exception if for 2 or more documents pushed together as a "Packet".) For invoices: must be the same number of pages for printing. must have blank space in upper right hand corner for ASC. Must have blank lower right corner (at least on odd pages) for barcoding. Avoid use of white space characters if at all possible Merging and splitting of table cells is not allowed All Tables have Alt Text All Images have Alt Text All text boxes have Alt Text--many readers cannot get at the contents of these boxes. DO NOT USE them. The only place we should have them is in the Mail to box to ensure the appropriate placement Mail to box should use standard placement and sizing for #10 envelope. Check table sizing for expected data returned by variables. If exact row height is used, make sure that there is no awkward wrapping. Default to 12pt Arial for Normal body text (11 if acceptable-in practice a lot of forms/reports use 10, avoid if possible). Use EGLE colors judiciously. Do not pick your own color palette (Amy has SOM color theme available) Test all scenarios so that every variable has been triggered at least once. SME has signed off on template. And they have sought any additional approval needed from Management. Since there is no place to document changes within MiEHDWIS, make sure there is a config ticket for tracking. Check the document Info to make sure the title is appropriate and the author is "EGLE" Do not use tables solely for layout. Tables have header rows set to repeat and column headers have "First Column" checked in the Table Design tab. Review content with staff. Ideally start from a document they've provided. Don’t try to update the content in place. It is usually harder to try and clean it up than it is to remove all formatting and start from plain text. (I usually roundtrip it through Notepad++). Do the same thing with variables. Oddities come along for the ride if you try to paste them from Confluence.  

Word Field Codes

When you see a generated document template with the Error! Missing test condition. message like the one below, do not worry, there is no error.

WordFieldCodes_exp.png

Some generated documents are designed to pull in MiEHDWIS fields which may or may not be populated. One example is the second line in a street address, as in the image above. If the field is populated, we want it to be displayed, and if it is not populated, we don’t want anything displayed. That is called Conditional Visibilty. There is conditional logic in this document. It has been added by way of using Word’s Field Codes. This is what is actually there, behind the scenes:

WordFieldCodeDisplayed.png

What that bolded piece says is “If there is an Address Line 2 in the entity record, display it, otherwise don’t”.

To be able to see the Field Codes, or if you’d rather NOT see them, you can control this yourself. In Word, go to File, Options (all the way at the bottom left), clicking on Advanced in the left menu of the Word Options box, scrolling down to Show document content and checking (or unchecking) Show field codes instead of their values, then clicking OK.

 

#10 Window Envelope Parameters

Use the settings below to guarantee a template’s address will appear in the right place for this type of envelope, and will not move depending on content.

Word_WindowEnvelope10_Parameters.png

 

 

Here are some handy tips and tricks:

Still need help? Submit a ticket to the Internal MiEHDWIS Help Desk and someone from our team will get back with you.