Contents: | Main | Chapter | See Also: | Getting Started Manual | Advanced User Manual |
Invoking DIWF at the top (i.e., D ^DIWF) results in an interactive dialog with the user.
Suppose you had a file called FORM LETTER (File #16001) and data is stored in ^DIZ(16001,. This file has a word-processing-type field where the text of a form letter is stored. In this file, as shown below, there are several form letter entries one of which is APPOINTMENT REMINDER:
Select Document File: FORM LETTER Select DOCUMENT: APPOINTMENT REMINDER Print from what FILE: EMPLOYEE WANT EACH ENTRY ON A SEPARATE PAGE? YES// SORT BY: NAME// FOLLOWUP DATE=MAY 1, 1999 DEVICE:
In this example, the word processing text found in the APPOINTMENT REMINDER entry of the FORM LETTER file is used to print a sheet of output for each EMPLOYEE file entry whose FOLLOWUP DATE equals May 1,1999.
If the document file contains a pointer field pointing to File #1, and if the document entry selected has a value for that pointer, then the file pointed to will be automatically used to print from and the user will not be asked "Print from what FILE:".
NOTE: The Read access is checked by DIWF for both files selected.
Reviewed/Updated: March 10, 2007