The final step is to set the configuration of the Document Template, that is:
•Choose the template that will be used
•Relate the information of the data model with the tags of the template.
•Choose the export format (PDF, or same as the template)
This is easily done by using the Configuration Wizard.
For Document templates generated manually
The Configuration Wizard will be displayed in the Basic tab of the Control's properties, as soon as a Data source has been defined.
Click on the Configuration Wizard button.
For Document templates generated automatically
The Configuration Wizard is displayed in the expression's properties on the right.
From now on, the configuration tool is the same.
The Configuration Wizard will display to present the following options:
•Condition: This option allows you to establish conditions for each Template included. Remember you can include as many templates as you need. Conditions will be evaluated when the end user clicks on the generate button, the templates that fulfill them will actually generate a document, the others will be ignored. This works similarly to the Conditions for notifications does. For further information please refer to Multiple Document Templates.
•Template: This option is where you upload, update, preview and delete templates.
•Document name: In this field you must type the name that will be given to generated documents.
•Mapping: This option allows relating the template tags with the data model of the Process.
•Export format: This option allows selecting the format in which the generated document will be exported: PDF or same as
•Language: This option allows selecting the language in which the text of localizable template tags is displayed (e.g., parameter entities' attributes and long dates). For better understanding, if you have a tag that references a long date attribute (e.g., Thursday, December 1, 2012), only the attribute's text is localized (i.e., Thursday and December). The languages available for selection depend on the Business configuration.
If you do not select a language and leave the field configured as (Default), the text of localizable template tags will be displayed in the Global culture language defined for the project (Localization tab of the Business configuration).