Managing the JRXML templates in the studio

Talend Platform for Enterprise Integration Studio User Guide

EnrichVersion
5.6
EnrichProdName
Talend Platform for Enterprise Integration
task
Design and Development
Data Quality and Preparation
EnrichPlatform
Talend Studio

You can rename the JRXML templates or template folder in the studio. You can also drop templates in different folders under JRXML Template or delete them completely from the studio.

How to rename a JRXML template or template folder

You can rename a JRXML template or template folder you import in the studio. The template or folder name will be automatically updated in the report editor if the template is used to generate a given report.

Prerequisite(s):At least one JRXML template or template folder is imported or created in the Profiling perspective of the studio.

To rename a JRXML template or folder, do the following:

  1. In the DQ Repository tree view, expand Libraries > JRXML Template.

  2. Right-click a folder or a template and select Rename Folder or Rename Jrxml File respectively.

  3. Set a new name in the open dialog box and click OK.

    The folder or template name is automatically updated in the DQ Repository tree view and in the report editor - if the template is used to generate a given report.

    Note

    If you get a warning message when trying to generate a report file about a JRXML template not accessible or not existing, browse to the renamed folder or template in the report editor and regenerate the report.

How to change the path of a JRXML template

You can move a template from one folder to another under JRXML Template. If this template is used to generate a report file, the template path in the report editor will be automatically updated to its new path in the DQ Repository.

Prerequisite(s):At least one JRXML template is imported or created in the Profiling perspective of the studio.

To move a JRXML template to a given folder, do the following:

  1. In the DQ Repository tree view, expand Libraries > JRXML Template.

  2. Drag a template from its initial folder and drop it in another folder.

    If the template is used to generate a report file, the template path is updated accordingly in the report editor.

    Note

    If you get a warning message when trying to generate a report file about a JRXML template not accessible or not existing, browse to the renamed folder or template in the report editor and regenerate the report.

How to duplicate or create a JRXML template

To avoid creating a template from scratch, you can duplicate an existing one and work around its metadata and definition to have a new template and use it to generate reports.

Prerequisite(s): At least one template is imported in the Profiling perspective of the studio.

To duplicate or create a template, do the following:

  1. In the DQ Repository tree view, expand Libraries> JRXML Templates.

  2. Right-click a template and select Duplicate.

  3. In the open dialog box, give the template a name and click OK.

    The template is listed under JRXML Templates.

  4. Double-click the template to open it in the studio and modify its definition according to your needs.

  5. Save the new template.

How to delete or restore a JRXML template

Prerequisite(s): At least one template is imported or created in the Profiling perspective of the studio.

To delete or restore a template, do the following:

  1. In the DQ Repository tree view, expand Libraries> JRXML Templates.

  2. Right-click the template you want to delete and select Delete.

    The template is moved to the Recycle Bin.

To delete it permanently from the Recycle Bin, do the following:

  1. Right-click it in the Recycle Bin and choose Delete.

    A [Delete forever] dialog box is displayed.

  2. Click Yes to confirm the operation and close the dialog box.

    If the template is used by one or more reports in the current studio, a dialog box is displayed to list all these reports.

  3. Either:

    • Click OK to close the dialog box without deleting the template from the recycle bin.

    • Select the Force to delete all the dependencies check box and then click OK to delete the template from the recycle bin and to delete all the dependent reports from the DQ Repository tree view.

To restore a template from the Recycle Bin, do the following:

  • In the Recycle Bin, right-click the template and select Restore.

    The template is moved back to the JRXML Template folder.