The HotDocs QUIT instruction specifies that any code in a computation after the QUIT instruction is to be ignored as code. There are two major uses for this instruction.
HotDocs Instruction - QUIT
PLAY MACRO
Sometimes, there are things you want done to your assembled document that HotDocs simply cannot do. Perhaps you want to check margins for a specific section, re-style an inserted template on the fly or automatically run a custom in-house print macro upon completion. For these sorts of tasks, the PLAY instruction is what you wish to use. PLAY will tell your word processor to run a specified macro after your document has been created (ie: after the interview, but before it displays as a document). If there is more than one PLAY instruction in a template, HotDocs will process them in the order encountered.
HotDocs Instructions - LIMIT
When it comes to REPEATS in HotDocs, LIMIT is one very handy instruction to know how to use. As its name suggests, it will LIMIT the number of iterations a repeat can hold, by placing the instruction in the dialog script of the dialog you wish to limit. Please note that this is entirely different to the number of rows shown on a repeating spreadsheet dialog. LIMIT will restrict a dialog to have only (for example) 3 iterations, where as the rows shown command will allow a repeat to hold countless iterations, but only show a specified number.
HotDocs Instruction - LANGUAGE
The Language instruction allows you to design, code and assemble templates in HotDocs in a language other than English. To be able to use this feature, you must first contact a Lexis Nexis sales representative to obtain a DLL for the language you wish to program with. HotDocs has DLLs for the following languages:
ENG (English), DEU (German), DES (Swiss German), DEA (Austrian German), FRA (French), NLD (Dutch), ESN (Spanish), ITA (Italian)
INSERT template
Not to be confused with the ASSEMBLE command (which queues a template for assembly after your current template has finished), the INSERT command does exactly that - inserts the content of one template into a different template (known as the “parent” template).
This instruction is extremely handy and very under utilised as it is useful for a wide variety of things, not just inserting letterhead!
IF, ELSE IF and ELSE
The humble IF statement is the core of all logic in any programming language, HotDocs included. IF statements don’t actually do anything but rather, they provide a structure within which other commands are executed. To bring any intelligence to your document-producing systems, you must understand the IF, ELSE IF and ELSE statements, as they are used everywhere.
GRAY, UNGRAY, SHOW and HIDE
These four commands are essential in presenting user friendly and user-proof dialogs in HotDocs. When designing systems, it is generally best practice to show only those variables that require (or may require) an answer and HIDE or GRAY those that are irrelevant. HotDocs provides a rudimentary manner to handle this automatically, but if you are designing complex systems, you may need to use these four commands.
All of these instructions are used in dialog scripts only.
FORMAT “LIST FORMAT”
Another HotDocs instruction model that does exactly what it sounds like, FORMAT allows you to specify the formattin of a “list style” RESULT. Rather than explain, I’ll simply provide 2 examples which demonstrates everything you’ll ever need to know about FORMAT.
FILTER Var
The HotDocs instruction “FILTER” is one that I use in almost every system that I’ve designed. Its purpose is exactly what it sounds like - to filter (a repeat), based upon a certain criteria, so that the data output from the repeat is reduced - only the repeats that match the filter come out. Like most instructions, it is best explained by example.
ERASE Var and ERASE Dialog
The ERASE instruction is one of the handier instructions in HotDocs if you are populating data dynamically more than once, or are using ‘temporary dialogs’ during your interviews. Use of this instruction will completely erase the contents of a variable or dialog, but be warned: it will erase all iterations of that variable or dialog!
Statistics
Page Views: 41778
Page rendered in 0.2845 seconds
32 queries executed
Total Entries: 147
Most Recent Entry: 02/06/2010 12:17 pm
Total Members: 5
Total Logged in members: 0
Total guests: 15
Most Recent Visitor on: 02/09/2010 12:48 am
Most visitors ever: 192 on 07/27/2009 08:47 am