Customizing the template in Template Designer - 1

To utilize the configured MT940 tag in the report, follow the steps below in the template designer.

  1. Click the Template Designer icon.

    image-20240313-084325.png

  1. The Template Designer screen gets displayed. Refer Report Templates to know more about the features of template designer.

    image-20240313-084417.png

  1. Click on the HTML Templates tab.

     

  1. Click Add Content button to add a new template for MT940 reports in the Studio. To know more about configuring template for MT940 report, refer Configuring the SWIFT MT940 Report with the template.

  2. Click on the edit icon of the selected template.

  1. Add the following tag in the template as shown in the below screenshot.

<#assign exportUtils=STATIC_TEMPLATE_MODEL['com.intellectdesign.canvas.export.ExportUtils']>

7. 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,firstRecord.Records,record?index)!""}


Tag 86:

${exportUtils.getTagContent("86",Context.configuration,record,firstRecord.Records,record?index)!""}

 

Note:
If the template already has the expressions for the tag 61 and 86, make sure to replace it with the above mentioned expressions to make use of the configured MT940 tags.

  1. Click Save to save the customized template.

 

  1. Drag and drop the customized MT940 template in the design area.

  1. Click Save icon to save the template configuration.

11. Perform the required configurations and Save the report.

  1. 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 studio.

Â