<?xml version="1.0" encoding="UTF-8"?>
<!--Arbortext, Inc., 1988-2015, v.4002-->
<!DOCTYPE pubsConcept PUBLIC "-//PTC//DTD PUBS DITA Concept//EN"
 "pubsConcept.dtd">
<?Pub UDT template _font?>
<?Pub Inc?>
<pubsConcept id="_creating_fields_91976" xml:lang="en"
xmlns:import="http://www.oberontech.com/import"
import:style="0_TopicSub"
import:map-object="2Heading_to_concept_in_conceptH1">
<title>Relationship Fields</title>
<pubsConbody>
<p>You can create relationship fields to link items for reference
purposes, such as linking duplicate items, or linking features and
their defects. You can also create relationship fields to link items
for the purposes of tracking and monitoring. For example, you can
create a Sub Features relationship field on a Feature item type to
link a master feature to a group of secondary features, which in turn
can have relationship fields that link to defect and documentation
items. Users can then track the overall development progress for a
master feature by reviewing its hierarchy of related items using the
Relationships view. For more information on the Relationships view,
see the User documentation.</p>
<p>Every relationship consists of a pair of relationship fields: one
for the forward relationship and one for the backward relationship.
Forward relationships are relationships where the related item is
a child of the original item. Backward relationships are relationships
where the related item is a parent of the original item. For example,
you could create a forward relationship field named Sub Features to
link master features to their sub features, and a backward relationship
field named Master Feature to link sub features to their master feature.
Users can create a relationship from either the child or the parent,
and the corresponding field in the related item is updated automatically.</p><?Pub
Caret 416?>
<section id="_creating_fields_86457" import:style="0_TopicSub2"><title
>Relationship Fields: Values Tab</title><table
import:table-style="Format A">
<tgroup cols="2">
<?PubTbl tgroup dispwid="1230.00px"?>
<colspec colname="1" colwidth="144.18*"/><colspec colname="2"
colwidth="305.82*"/>
<thead>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="middle"
><p>Field</p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="middle"
><p>Description</p></entry>
</row>
</thead>
<tbody>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Types</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Item type that is to use the relationship field</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Allowed Types</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Item types that can be linked to using the relationship field. </p
><p>For example, to allow the field to be used to create relationships
between documentation items and bugs, select <codeph>Docs</codeph
> under <uicontrol import:style="GUI8">Available Types</uicontrol
> and add <codeph import:style="Literal">Bugs</codeph> to the <uicontrol
import:style="GUI8">Allowed Types</uicontrol>. Then select <codeph
>Bugs</codeph> under <uicontrol import:style="GUI8">Available Types</uicontrol
>, and add <codeph import:style="Literal">Docs</codeph> to the <uicontrol
import:style="GUI8">Allowed Types</uicontrol>.</p><p><uicontrol
import:style="GUI8">Allowed Types</uicontrol> are uneditable for the
following fields: <uicontrol import:style="GUI8">Contains</uicontrol
>, <uicontrol import:style="GUI8">Contained By</uicontrol>, <uicontrol
import:style="GUI8">Referenced By</uicontrol>, <uicontrol
import:style="GUI8">Shares</uicontrol>, and <uicontrol
import:style="GUI8">Shared By</uicontrol>.</p><p>Repeat the selection
process for additional item types.</p><p>You can create heterogeneous
and homogenous segments using allowed types. </p><p>To learn how to
create homogeneous subsegments, see <xref format="dita"
keyref="_setting_up_documents_54543" scope="local">Setting Up Documents</xref
>.</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Cycle Detection</uicontrol></p
></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>To prevent relationship loops from occurring. A relationship loop
occurs when an item has both a forward and a backward relationship
with another item within the same relationship hierarchy.</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Trace</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Sets the field as a trace relationship. Trace relationships are
defined via field pairs are and presented to the user in domain-specific
language, for example, Test and Requirements. To learn more about
trace relationships, see the Documents section of the user documentation.</p
></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Forward</uicontrol> and <uicontrol
import:style="GUI8">Backward</uicontrol> tabs</p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>The fields used for forward and backward relationships.</p><p
>For example, if you are defining a relationship field to track defects
related to an item, the forward relationship field could be named <codeph
import:style="Literal8">Defects</codeph> and the backward relationship
field could be named <codeph import:style="Literal8">Defects Of</codeph
>. </p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Name</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Name of the relationship field. The name you enter is also used
for the backward relationship field and prefixed with the word <codeph
import:style="Literal">Backward</codeph>. You can edit this name.</p
><note><p>Once the field is created, changes to the name of the forward
relationship field are not carried over to the backward relationship
field name.</p></note></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Multi Valued</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Allow links to multiple items. For example, a field used to track
defects on an item would need to allow multiple linked items; a field
used to identify the documentation item used for documenting the changes
made by a change order item would only need to allow a single linked
item.</p><note><p>If you want a single-valued relationship field to
be able to be changed using drag-and-drop in the Relationships view,
you must make it visible on the appropriate item types. For example,
if you have Documented By and Documentation For as a set of relationship
fields, and the Documented By field is single-valued, if you want
users to be able to change the related documentation item for a change
order item using drag-and-drop, the Documented By field must be visible
on the change order item type.</p></note></entry>
</row>
<row>
<entry><?PubTbl cell border-bottom-width="0.50pt" border-left-width="0.50pt"
border-right-width="0.50pt"?><p><uicontrol>Wrapped table content</uicontrol
></p></entry>
<entry><?PubTbl cell border-bottom-width="0.50pt" border-right-width="0.50pt"?><p
>Display wrapped table content for the relationship field when editing
the item.</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Display Style</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Display the relationship field in table format or in a comma-separated
values (CSV) format. The table format allows you to sort the linked
items and manipulate the columns that display in the table. The CSV
format only displays the IDs and relationship flags of the linked
items.</p><note><p>If document versioning is enabled, relationship
fields configured to display values in CSV format do not support versioned
item IDs, for example, <codeph>184-1.2</codeph>.</p></note></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Display Rows</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Number of rows to display for the relationship field when editing
the item.</p></entry>
</row>
<row>
<entry morerows="2"><?PubTbl cell border-bottom-width="0.50pt"
border-left-width="0.50pt" border-right-width="0.50pt"?><p><uicontrol
>Browsing Style</uicontrol></p> </entry>
<entry><?PubTbl cell border-bottom-width="0.50pt" border-right-width="0.50pt"?><p
>When adding related items, specifies the browsing style of candidate
items. Choices are <uicontrol>Query</uicontrol> and <uicontrol>Finder</uicontrol
>.</p></entry>
</row>
<row>
<entry><?PubTbl cell border-bottom-width="0.50pt" border-right-width="0.50pt"?><p
>When <uicontrol>Query</uicontrol> is selected, the following additional
options are available:</p><ul>
<li><p><uicontrol>All Queries</uicontrol>: If you select this option,
you can see all queries while selecting the related item.</p></li>
<li><p><uicontrol>Specific Queries</uicontrol>: If you select this
option, you can see only queries in the <uicontrol>Specific Queries</uicontrol
> list while browsing the related item. This list contains only Admin
queries. </p></li>
<li><p><uicontrol import:style="GUI8">Set Default Browse Query</uicontrol
>: If you select this option, you set the default Admin query that
you want to use when browsing for items to add to the relationship
field. Use the data filter to select the desired Admin query. If there
are no Admin queries, this option is unavailable.</p></li>
</ul><note><p>The list of queries available to the end user while
browsing for the related item depends on whether:</p><ul>
<li><p><uicontrol>Specific Queries</uicontrol> list is set.</p></li>
<li><p><uicontrol>Default Browse Query</uicontrol> is set.</p></li>
</ul><p>The queries list visible is a combination of the <uicontrol
>Specific Queries</uicontrol> list and <uicontrol>Default Browse Query</uicontrol
> list for the respective relationship field.</p><ul>
<li><p>If the <uicontrol>Specific Queries</uicontrol> list is empty
and <uicontrol>Default Browse Query</uicontrol> has been set, only
default queries are listed while browsing for related item.</p></li>
<li><p>If the <uicontrol>Specific Queries</uicontrol> list is empty
and <uicontrol>Default Browse Query</uicontrol> is not set, or if
the user does not have permission to any of these specified queries,
only the last query used by the user is listed while browsing for
related item.</p></li>
</ul></note></entry>
</row>
<row>
<entry><?PubTbl cell border-bottom-width="0.50pt" border-right-width="0.50pt"?><p
>When <uicontrol>Finder</uicontrol> is selected, the following options
are used to define the contents of <uicontrol>Find Items to Relate</uicontrol
> window:</p><ul>
<li><p><uicontrol>Finder Query</uicontrol>: The Admin query that is
used to populate the left pane of the <uicontrol>Find Items to Relate</uicontrol
> window.</p><note><p>A <uicontrol>Finder Query</uicontrol> must be
provided for the <uicontrol>where</uicontrol> field filter in the <ph
conref="../common/text_variables.dita#text_variables/ProdName01"></ph> client
for the <uicontrol>Find Items to Relate</uicontrol> window to work.</p
></note></li>
<li><p><uicontrol>Outline Format</uicontrol>: The way in which to
display the outline in the right pane of the <uicontrol>Find Items
to Relate</uicontrol> window. You can select fields from the <uicontrol
>Fields</uicontrol> drop-down box or specify additional fields.</p
></li>
<li><p><uicontrol>Relationships To Follow</uicontrol>: The list of
relationships. The specified relationships return the items related
to those in the left pane of the <uicontrol>Find Items to Relate</uicontrol
> window and displays them in the right pane.</p></li>
</ul><p><uicontrol import:style="GUI8">Set Default Browse Query For
Web UI</uicontrol>: Sets the default query to use in the Web UI when
browsing for items to add to the relationship field that has a <uicontrol
>Finder</uicontrol> browsing style.</p><note><ul>
<li><p>The <uicontrol>Find Items to Relate</uicontrol> window is available
only in the <ph conkeyref="text_variables/ProdName01"></ph> client.</p
></li>
<li><p>If <uicontrol>Set Default Browse Query For Web UI</uicontrol
> is not specified, browsing behavior for adding related items in
the Web UI is the same as when <uicontrol>All Queries</uicontrol> is
selected.</p></li>
</ul></note><p>For more information about the <uicontrol>Find Items
to Relate</uicontrol> window, see the <ph
conref="../common/text_variables.dita#text_variables/_Guide_Integrity_Getting_Started"
></ph>.</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Relationship Flags</uicontrol></p
></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Relationship flags are used to indicate when a related item has
changed. To add relationship flags for the field click <uicontrol
import:style="GUI8">Add</uicontrol>.</p><note><ul>
<li><p>A user must be licensed for configuration management to be
able to use relationship flags in an item.</p></li>
<li><p>Relationship flags defined for relationship fields can be set
automatically through a field rule. </p></li>
</ul></note></entry>
</row>
</tbody>
</tgroup>
</table></section>
<section id="_creating_fields_19002" import:style="0_TopicSub2"><title
>Add Relationship Flag Dialog Box Options</title><table
import:table-style="Format A">
<tgroup cols="2">
<?PubTbl tgroup dispwid="1232.00px"?>
<colspec colname="1" colwidth="144.68*"/><colspec colname="2"
colwidth="305.32*"/>
<thead>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="middle"
><p>Field</p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="middle"
><p>Description</p></entry>
</row>
</thead>
<tbody>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI8">Name</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Name of the relationship flag</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI">Character</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Single character to display when the flag is set on a relationship
field using the CSV display style or when the relationship is viewed
through the CLI. You cannot use numbers as relationship flag characters.</p
></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI">Select</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Locate the image you want to use for this type of relationship
flag in a relationship field using a table format. The image must
be in a JPEG or GIF format and no larger than 24 by 16 pixels.</p
></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI">Suspect</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>Allows you to define a suspect flag for items at the field level.
When there is a significant edit to a document item with a field pointing
to it that is flagged as suspect, all related items using that field
are flagged as suspect.</p></entry>
</row>
<row>
<entry colname="1" morerows="0" nameend="1" namest="1" valign="top"
><p><uicontrol import:style="GUI">Enabled</uicontrol></p></entry>
<entry colname="2" morerows="0" nameend="2" namest="2" valign="top"
><p>You are using this relationship flag</p></entry>
</row>
</tbody>
</tgroup>
</table></section>
</pubsConbody>
</pubsConcept>
