1

2

3

4

5

6

7

6 Variable Content

1. Unit Objectives

In this unit we reuse the page setup logic from the Offer Letter publication. We will create a Response Letter with Show When paragraph properties. In addition we will introduce the concept of indirect field references.

accepted page 1

 

accepted page 2

 

accepted page 3

pending page 1

pending page 2

 

pending page 3

 

pending page 4

 

 

2. Duplicating a Publication

In this section we will copy and paste the Offer Letter to reuse the page setup for the Response Letter. The purpose of this is to highlight a modular approach to design documents within DOC1 Series 5.

  1. 1. If your Work Center Manager is not currently displayed, select View/ Manager/All.
  2. 2. In the Navigator, click the Offer Letter publication.
  3. 3. From the main menu select Edit/ Copy.
  4. 4. From the main menu select Edit/ Paste.
  1. 5. In the Navigator, right-click the Copy of Offer Letter.
  2. 6. Select Rename.
  3. 7. Type, Response Letter.
  4. 8. Double-click the Response Letter.

3. Modify Document and Page Setup

In this section we will design new document body content reusing the page setup.

  1. 1. In the logic map delete section.

At this point the document view should only contain a single page with header and footer content.

so far:

4. Data Field

In this section we will import the body content of the document via a *.rft and add a data field for the customer name.

  1. 1. Mark your cursor in the document.
  2. 2. From the main menu select Insert/ Presentation Objects/ RTF.
  3. 3. Select Response.rtf.
  4. 4. Click Open.
  5. 5. Click Save.

so far:

The salutation requires the customer’s name that will dynamically change. Therefore we will need to build a dictionary to hold the Ailases.

  1. 1. Click Data tab, Data Dictionary bar.
  2. 2. Double click on Company Letters folder.
  3. 3. Click File / New Data Dictionary.
  4. 4. Rename to Response.

Now we will place a data field in our document and build an alias within our newly created data dictionary.

  1. 1. In your document mark your cursor after Dear. (ensure there is a space after Dear)
  2. 2. From the main menu select Insert/ Field/ Data Field.
  3. 3. From the drop down menu select the Response data dictionary.
  4. 4. Click New Alias.
  5. 5. Name, type Customer Name
  6. 6. Type, select String.
  7. 7. Example, type your name.
  8. 8. Click OK.
  9. 9. Select Customer Name.
  10. 10. Click Insert, Close.

so far:

5. Paragraph Show When Property

The imported letter contains paragraphs that will appear in a Response Letter. Depending on the status of the customer’s application they will either receive a letter that contains paragraphs pertaining to acceptance or pending the account application. This behavior will be driven by the paragraph Show When property. Some of the paragraphs will be used in both letter types. We will create a paragraph Show When condition for accepted accounts.

  1. 1. In the document, mark your cursor at We are pleased to.....paragraph.
  2. 2. From the main menu select Format/ Paragraph.
  3. 3. Click the Show When tab.
  4. 4. Click Show when checkbox.
  5. 5. Condition type, select, Simple.
  6. 6. Relation type, select, And.
  7. 7. Under the 1st Operand, click
  8. .
  1. 8. Select Data Field.
  2. 9. Select the Response Dictionary.
  3. 10. Click New Alias.
  4. 11. Name, type Account Status
  5. 12. Type, select String.
  6. 13. Example, type Accepted.
  7. 14. Click OK, OK.
  8. 15. Under Operator, click
  9. .
  1. 16. Select =.
  2. 17. Under 2nd Operand, click
  3. .
  1. 18. Select, Constant, String.
  2. 19. Type, Accepted.
  3. 20. Click OK.

We will create a paragraph Show When condition for pending accounts.

  1. 1. In the document, mark your cursor at Unfortunately we are unable.....paragraph.
  2. 2. From the main menu select Format/ Paragraph.
  3. 3. Click the Show When tab.
  4. 4. Check the, Show when checkbox.
  5. 5. Condition type, select, Simple.
  6. 6. Relation type, select, And.
  7. 7. Under the 1st Operand, click
  8. .
  1. 8. Select Data Field.
  2. 9. From the Response data dictionary, select, Account Status.
  3. 10. Click OK.
  4. 11. Under Operator, click
  5. .
  1. 12. Select =.
  2. 13. Under 2nd Operand, click
  3. .
  1. 14. Select, Constant, String.
  2. 15. Type, Pending.
  3. 16. Click OK.

so far accepted:

so far pending:

6. New Page

We are going to add a new page that will keep the header as is and disable the footers.

  1. 1. In the logic map, mark your insertion point at Paragraph (New Account...)
  1. 2. From the main menu select Insert/ Control Objects/ New Page.
  2. 3. Label, type, Account Status Form.
  3. 4. Header, click, Show radio button.
  1. 5. Footer, click, Hide radio button.
  2. 6. Click Create.

7. Case Tests

We will create the case test to determine if the customer will receive the Accepted Terms and Conditions form or the Pending Application form.

  1. 1. In the logic map, mark your insertion point at New Page (Account Status Form).
  2. 2. From the main menu select Insert/ Control Objects/ Condition/ Case.
  3. 3. Label, type, Accepted or Pending Forms.
  4. 4. Under Source, click
  5. .
  1. 5. Select Data Field.
  2. 6. From the Response data dictionary, select, Account Status.
  3. 7. Click OK.
  1. 8. Click Create.

Next we will create the individual case test for Accepted customers.

  1. 1. In the logic map, mark your insertion point at Case (Accepted or Pending Forms) <Insert object here>.

  1. 2. From the main menu select Insert/ Control Objects/ Condition/ Case Test.
  2. 3. Label, type, Accepted.
  3. 4. Under Source, click
  4. .
  1. 5. Select Constant, String.
  2. 6. Type, Accepted.
  3. 7. Click Create.
  1. 1. Mark your cursor at the Case Test (Accepted) True Result <Insert object here>.
  2. 2. From the main menu select Insert/ Presentation Objects/ RTF.
  3. 3. Select Terms.rtf.
  4. 4. Click Open.

 

accepted page 1:

 

accepted page 2:

 

 

accepted page 3:

 

Your logic map should look like:

Next we will create the individual case test for Pending customers.

  1. 1. In the logic map, mark your insertion point at Case Test (Accepted).
  1. 2. From the main menu select Insert/ Control Objects/ Condition/ Case Test.
  2. 3. Label, type, Pending.
  3. 4. Under Source, click
  4. .
  1. 5. Select Constant, String.
  2. 6. Type, Pending.
  3. 7. Click Create.

We are going to add the Application Form in the True Result.

  1. 1. In the logic map, mark your insertion point at Case Test (Pending) True Result <Insert object here>.
  1. 2. From the main menu select Insert/ Presentation Objects/ RTF.
  2. 3. Select Form.rtf.
  3. 4. Click Open.
  4. You must Force the Case to have a value of Pending in order to see the Pening letter Attachments as shown over the next few pages.

pending page 1:

 

pending page 2:

 

pending page 3:

 

pending page 4:

 

Your logic map should look like: