Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


How to

To import a template


  1. In the Report Wizard dialog, click Image Modified. The Select Location dialog will appear.

    Select Location DialogImage Modified
  1. Selecting the location to import a template.

 


  1. Select a Report Wizard template with the filename extension *.mrzip and click Image Modified. The following Message dialog will open.


    Image Modified

    The Message dialog of a successful import.


How to

To export a template


  1. In the Report Wizard dialog, select a template and click Image Modified. The Select Location dialog will open.

    Select Location DialogImage Modified
  1. Selecting a location to export the template.
 

  1. Select a directory or folder location in which you want to export the template.

  2. Type the filename and click Image Modified. The Message dialog will open.

  3. Click Image Modified.

  1. Message Dialog of Successful ExportImage Modified

  1. The Message dialog of successful export.


How to

To open a template file in the default editor


  • In the Report Wizard dialog, select a template and click Image Modified. The template file will open in the default editor.
 

Working with a template variable

A template contains variables and their values. You can create a new template variable, and modify or delete an existing template variable in the Template Variable dialog. You cannot modify the variables of a built-in template. You can only create or modify a template variable of a user-created template.

Image Modified
The Template Variable dialog.


The Template Variable dialog, contains the following:    

  • Variable pane: This pane consists of a table in which the first column is the variable name, the second column is the variable value, and also includes a report description field. You can view and directly edit the value of a selected variable in the second column.
  • Control buttons: Image Modified and Image Modified.

 


The following instructions explain how to manage the variables of a template.

 


How to

To create a template variable


  1. Select a template in the Report Wizard dialog and click Image Modified. The Template Variable dialog will open.

  2. Click Image Modified. The New Variable dialog will appear.

    Image Modified

    Creating a new variable in the New Variable dialog.

 


  1. Enter the variable name (no space between characters) and description.

  2. Select an owner for this new variable from the Owner drop-down list (optional).

  3. Click Image Modified. You will see the newly-created variable’s name and value in the Variable pane.

  4. In the Template Variables dialog, click Image Modified.

You can


To modify a variable value in

either the Template Variable dialog or Variable value dialog.How to modify a value in

the Template Variable dialog


  1. Select a template in the Report Wizard dialog, and click Variable to open the Template Variable dialog.

  2. Double-click the Variable value column and modify the value in the column.

    Image Modified
  1. Editing a variable value in the Template Variable dialog.


How to

To modify a value in the Template Variable value dialog


  1. Double-click the Variable value column in the Variable pane in the Template Variable dialog, and click the Image Modified button. The Variable value dialog will open.

    Image Modified
  1. Editing a variable value in the Variable value dialog.


  2. To modify the variable value, you can enter the value of a report variable either in plain text or HTML by selecting the HTML check box in the Variable Value dialog.


    Image Modified

    Entering a report variable value in HTML.

 


  1. Click Image Modified. 
  2. When you finish modifying variables and their values in the Template Variable dialog, click either Image Modified to confirm the changes or Image Modified to discard them.


How to

To delete a variable


  1. Select a variable in the Template Variable dialog and click Image Modified. The Question dialog will appear prompting you to confirm before deleting the selected variable.
  2. Click Image Modified to delete the selected variable.

    Deleting A VariableImage Modified
  1. Deleting a variable
Content layer
id1272371877



How to

To extract a template


  1. Select an attached template in the Report Wizard dialog.
  2. Click Image Modified to extract the attached template to the local report template folder.
  3. If the template already exists in the local report template folder, a confirmation dialog will be displayed.
    Confirmation dialog when you perform extract templateImage Modified
  1. The confirmation dialog when you extract a template.
  2. Click Image Modified to extract the template. The attached template will be extracted to a local template.
Image Modified
A local template in the Report wizard's template selection pane.
 
Content column
id1272371882
Content block
id1272647216

On this page

Table of Contents
maxLevel3


How to

To create a template


  1. On the MagicDraw main menu, click Tools > Report Wizard. The Report Wizard dialog will open.
  2. Click Image Modified. The New Template dialog will open.

    Image Modified
  1. Creating a new template in the New Template dialog.

 


  1. Enter the template name and description.
  2. ClickImage Modified to select the location of the new template.
  3. Select the template file location and click Image Modified.
  4. Click Image Modified. The template file will be created in the Select Template pane.
     

Image Modified

The template file is created in
the Select Template pane
the Select Template pane.


How to

To edit a template


  1. In the Report Wizard dialog, select a template and click Image Modified. The Edit Template dialog will appear.

 

  1. Image Modified

    Editing a template in the Edit Template dialog.

 


  1. Edit the template name, description, category, and locate the template file’s location.
  2. Click Image Modified.


How to

To delete a template


  1. In the Report Wizard dialog, select a template and click Image Modified. The Confirm delete dialog will appear.
  2. Click Image Modifiedto delete the selected template from the template list, or click Image Modified to cancel the operation.

   
    Confirm Delete Dialog Image Modified

The Confirm delete dialog
.


To

How to

clone a template


  1. In the Report Wizard dialog, select a template and click Image Modified. The Clone Template dialog will appear.

    Clone Template DialogImage Modified
  1. Cloning a template in the Clone Template dialog.

  2. Enter the name and description. The name of the cloned template should begin with Copy of (name of template).

  3. Click Image Modified to clone the template.


How to

To copy a template and add it to the project file


  1. Select a template in the Report Wizard dialog.
  2. Click Image Modified to make a copy of the selected template and add it to the project’s files, so anyone with access to the project can generate a report.

Step on how to attach templateImage Modified

The steps to attach a template to a project file.

 


The new template will be created and displayed in the Report Wizard dialog and the Containment tree.


Result of attaching a template on Report WizardImage Modified

Result of attaching a template in the Report Wizard dialog.

 


Image Modified

Result of attaching a template in the Containment tree.

 


You can right-click the attached template in the Containment tree, and select Generate Report{attached template name} to open the Report Wizard dialog.

Image Modified

Opening the Report Wizard dialog via attached template in the Containment tree.
 


Image Modified

The Report Wizard template selection dialog
 
.
Content block
id1272371881

eport Wizard uses templates to generate reports. Each report file format depends on the type of template files. The type of template files that Report Wizard supports includes plain text, RTF, HTML, Office Open XML (ISO/IEC 29500:2008)OpenDocument format (ISO/IEC 26300), and XML template (DocBook or FO).

Report Wizard provides predefined templates such as Use Case, Model Extension, Data Dictionary, IEEE 1233, Class Specification Diagram, Business Process Diagram, and Web Publisher templates. The report template management pane in the Report Wizard dialog lists all of the report templates from which you can select to manage or generate your report.

 


Select Template PaneImage Modified

There are many template
Template options, which are highlighted in orange, are available to choose from in the Report Wizard dialog.

 


Using the Template Management Pane

In this pane, you can create a new template, or use an existing one. The following table displays the buttons from which you can choose while working with your template. Additionally, the control buttons in the lower part of the dialog Image Modified, Image Modified, and Image Modified help you cancel an action, go to the next step, and generate a report.

 


ButtonFunction

Image Modified

Opens the New Template dialog through which you can create a new template.

Image Modified

Edits a template and saves it in Report Wizard.

Image Modified

Deletes a template from Report Wizard. 

Image Modified

Opens a template file in the default editor.

Image Modified

Creates a new template variable and modify or delete an existing template variable in the Template Variable dialog.
Image Modified
Clones a selected template.

Image Modified

Copies a selected template and adds it to the project file.

Image Modified
Extracts an attached template to a local report templates folder.

Image Modified

Imports a template.

Image Modified

Exports a template

 

 



Working with a Template 

The following instructions illustrate how to use each button in the Report Wizard to create, select, and manage a template.

 

Expand
title
Expand
title
Expand
title
Expand
title
Expand
title
Info
titleNote
  • In the Report Wizard dialog, when you select the attached template, the Image Modified button will be changed to Image Modified button.
  • You can use the Image Modified button to extract the attached template to the local report template folder. After you finish editing, you can use the Image Modified button to re-attach the updated report template to your project.
Expand
title
Tip
  • After you finish editing, you can use the Image Modified button to re-attach the updated report template to your project.
  • You can remove an attached template from a project by selecting it and clicking Image Modified.
Expand
title
Expand
title
Expand
title
Expand
title
Expand
titleHow to modify a variable in the Template Variable dialog
Expand
title
Expand
title
Panel
titleOn this page

Table of Contents

Glossary

 

Expand
  1. .

Glossary

title
  • Use case
Use case is
  • A a kind of behavior classifier that specifies a complete unit of useful functionality performed by one or more subjects to which the use case applies in collaboration with one or more actors. It also, for complete use cases, yields an observable result that is of some value to those actors or each subject. Use cases allow you to capture the requirements of systems under design or consideration, describe functionality provided by those systems, and determine the requirements those systems pose on their environment.
Expandtitle
  • Business process diagram
 Business process diagram is a
  • A road map for implementation. It outlines the expected outcome, and provides something concrete from which to build.

 

 

 

More information about working with templates in Report Wizard

To learn more about templates and template variables, you can visit the following pages: