Template Properties (Magic xpi 4.13)
You can map data to a template. Data is mapped to the template Destination and a new file is created. Before you can map to a file, you must create a template. This template file uses special tags that provide information to the Data Mapper when mapping the data. In this dialog box, you must indicate the template file and where the new file is sent.
The Properties pane contains the following properties:
|
|
Name
|
Enter a name for the schema.
|
Description
|
Enter a description for the schema.
|
Template File
|
Click to select a template file. This must be a template file created with specific tags, including MGIF_xxx tags. See Mapping Data to Templates for an explanation on how to create a template file. Once you have set the file, and have mapped a Source to a Destination, you cannot change it. If you try to change it, an information message tells you that it is not possible.
![](/PublicKnowledge/servlet/rtaImage?eid=ka23z000000H0M0&feoid=00ND0000005rAjf&refid=0EM3z000007lCr6)
|
-
Special characters (such as *, ., ?, < and >) are not legal characters for template file tags, since the results are unpredictable.
-
A specific tag should not appear in more than one section in a template.
-
A tag in a template should not exceed 30 characters.
|
|
Destination Type
|
Select where the mapped data will be created:
-
File: If you select file, the File Path property (below) is available to add the name and location of the XML file with the Source data or the Destination of the file you are creating. Use the Expression Editor to create an expression or condition that will locate the file. This allows you to define a dynamic location for the file. If you want to work with a static location, enter the full path to the file in the field or create a (flow, context, or global) variable that holds the full path to the file and select the variable from the Expression Editor.
-
Variable: Select a variable to hold the XML file that contains the created data. Only BLOB type variables are available.
|
File Path
|
If you selected File in the Destination Type property (above), click to use the Expression Editor to create an expression or condition that will locate the file.
|
Variable
|
If you selected Variable in the Destination Type property (above), click to open the Variable List. Select a variable and then click Select.
|
Unicode Support
|
Select one of the following options from the drop-down list to process text files that include data encoded in Unicode:
|
Append Data
|
Select one of the following options from the drop-down list to append the new mapping to work with existing files:
|