Customizing the template in Template Designer
To utilize the configured MT940 tag in the report, follow the steps below in the template designer.
Click the Template Designer icon.
The Template Designer screen gets displayed. Refer Report Templates to know more about the features of template designer.
Click on the HTML Templates tab.
Select the template which is to be used for the MT940 report. Refer Configuring the SWIFT MT940 Report with the template to know more creating a template for MT940 report.
Click on the edit icon of the selected template.
Add the following expression in the template as shown in the below screenshot.
<#assign exportUtils=STATIC_TEMPLATE_MODEL['com.intellectdesign.canvas.export.ExportUtils']>
Use the following expressions for the tags 61 and 86 in the template as shown in the following screenshot to make use of the configured MT940 tags.
Tag 61:
${exportUtils.getTagContent("61",Context.configuration,record,record.Records,record?index)!""}
Tag 86:
${exportUtils.getTagContent("86",Context.configuration,record,record.Records,record?index)!""}
Â
If the template already has the expressions for the tag 61 and 86, make sure to replace it with the above mentioned expressions.
Â
Sample Template used for the template configuration:
When the data source for the MT940 report is from the data composer (data builder), follow the below steps in the template:
Add the following expression in the template as shown in the below screenshot.
Make changes in the template as shown in the below screenshot.
Use the following expressions for the tags 61 and 86 in the template as shown in the following screenshot to make use of the configured MT940 tags.
Tag 61:
Tag 86:
Â
If the template already has the expressions for the tag 61 and 86, make sure to replace it with the above mentioned expressions.
Sample Template used for the template configuration:
Click Save to save the customized template.
Drag and drop the customized MT940 template in the design area.
Click Save icon to save the template configuration.
Perform the required configurations and save the report.
Login to Sigma and generate the created report in TXT format.
Refer Generating a Report for more information on generating reports in Sigma.
The following screenshot shows the output of the text report with MT940 statement created using MT940 template configuration in Report.
Â