You can add a range of template elements, queries, and
conditions to build a template.
- In the Document Studio, drag the Container element
from the Palette view to the Template Content
editor.
- From the Data Source Schemas view, expand Module
(DOORSModule) and drag the Object (DOORSObject) into
the Container element. The query displays in the element as Data_Source_ID
Module.Object.
- From the Data Source Schemas view, expand Object
(DOORSObject) and drag the Object Heading (string) attribute
into the Container element. A text element is created within the Container
element.
- If the Object Heading contains a value, assign a condition
to the display of the text element:
- Right-click on the Object Heading element and click . The Set Condition for Current Element window
opens.
- In the Script Expression section, expand Attributes and
select the check box for the Object_Heading attribute.
- For the Left operand field, select
the _element_level condition.
- For the Operator field, select not
equal to.
- Click Add to create the condition
script.
- Click OK to save the condition.
- From the Palette view, drag a Paragraph element into the
Template Content editor and place it after the Text element.
- From the Data Source Schemas view, expand Object
(DOORSObject) and drag the Object Text (string) attribute
into the Paragraph element. A text element is created within the Paragraph
element.
- If the Object Text contains a value, assign a condition
to the display of the text element:
- Right-click the Object Heading element and click . The Set Condition for Current Element window
opens.
- In the Script Expression section, expand Attributes and
select the check box for the Object_Text attribute.
- For the Left operand field, select
the _element_level condition.
- For the Operator field, select not
equal to.
- Click Add to create the condition
script.
- Click OK to save the condition.
- From the Palette view, drag the Table
of contents element to the Template Content editor and
place it above the Container element.
- Add an image to the template:
- From the Palette view, drag an
Image element to the Template Content editor.
- In the Template Content editor, right-click the Image element
and click .
- Select the image to add and click OK.
The image is added to the template.

- Add a document title placeholder:
- From the Palette view, drag the Paragraph element
to the Template Content editor.
- Select the Paragraph element.
- In the Properties view, select
the General tab.
- In the name field, enter a name such as Document
Title Placeholder.
- From the Palette view, drag the Text element
to the Template Content editor and place it in the Paragraph element.
- Add the DocumentTitle variable to
the placeholder:
- In the Outline view, expand Variables.
- Drag the DocumentTitle variable
to the Text element in the Document Title Placeholder paragraph.

- Save the template.
- Define a style in the template:
- In Document Studio, click . The New Style wizard
opens. In the welcome window, click Next.
- In the Style name field, type
the style name as RPE_Title and click Next.
- In the Select style properties window,
select the property or group of properties to apply to the template
element. For example, select text and click
to
add the fields to your style, and then click Next.
- In the Set Property Value window,
expand the text and font property
names. Enter values in the Property Value column
for each property:
- For bold, enter true.
- For font color, enter hexadecimal number, such as 0000EE for
blue.
- For font size, enter a point size, such as 16.
- Then click Next.
- Review the summary and click Finish.
- Assign the created style to the Document Title Placeholder
paragraph by dragging the style from the Outline view
to the Paragraph element.
- Add a master page to the template:
- In the bottom of the template editor, click the MP_Data Master
Page tab.
- In the Palette view, select the Paragraph element
and drag it into the Header element in the template editor.
- In the Palette view, select the Text element
and drag it into the Paragraph element you added to the Header.
- In the Outline view, right-click Variables and click .
- Enter the details for a HeaderData variable.
- Name: HeaderData
- Description: Header information
- Access: External
- Drag the HeaderData variable from
the Outline view into the Text element in the Template Content editor.
- From the Palette view, select the
Page Number element and drag it into the Footer element in the Template
Content editor.
- Click the Template Content tab.
- From the Outline view, drag the MP_Data into
the Template Content editor and place it in the Container element.
- Save the template.
- Adding Rational® DOORS® links in the template:
- In the Palette view, drag the Container element
into the Template Content editor. Place it into the existing Container
element under the Paragraph element.
- From the Data Source Schemas view, expand Object
(DOORSObject) and drag the Link (DOORSInnerLink) attribute
into the Container element.
- Select the Container element and in the Properties view,
select the General tab. In the name field,
enter Link Container.
- In the Properties view, expand Data,
and for the Filter property, click
.
- In the Native Filter tab of the Filter Editor window,
edit the filter for the Module.Object.Link query by entering Link
direction in, and then click OK.
- From the Palette view, drag the Paragraph element into
the Link Container element.
- From the Data Source Schemas view, expand Object
(DOORSObject) and drag the Linked Object (DOORSLinkObject) attribute
into the Paragraph element.
- Click OK.
- Select the Paragraph element and in the Properties view,
select the General. In the name field,
enter Linked Objects Para.
- From the Data Source Schemas view, expand Object
(DOORSObject) and Linked Object (DOORSLinkObject),
and then drag the Object Text (string) query
into the Paragraph element.
- Save your template.