When you create a regular table layout, you select
one or more elements types to filter the data for your table. For
an extended table layout for a relation table, the filtering functionality
has been extended so that in addition to the element type filtering,
you can include filtering the elements by the metaclass of their "from"
and "to" elements.
Example of when you might create
an extended table layout: Assume that you want to see only those dependencies
that are owned by class and depending on attributes. You can create
an extended table layout for a relation table and set the "from element
type" to be Class, and the "to element type"
to be Attribute. When you display the extended
table view for this extended table layout, the product filters all
dependencies in the scope and then filters only those elements that
are owned by classes that also depend on attributes.
About this task
You can use an extended table layout to define the relationships
under a class or package, based on links, associations, and dependencies.
This type of extended table layout might be useful for very large
models. The procedure for creating an extended table layout is the
same as creating a regular table layout, except for those steps that
are specifically for creating an extended table layout, which is what
is covered here.
The extended table layout feature is available
out-of-the-box for projects created with the AUTOSAR_31, AUTOSAR_40,
and MicroC profiles. To make this feature available for other model
types, add the ExtendedTableCapabilities profile ($OMROOT\profiles\MicroC\ExtendedTableCapabilities.sbs)
to the model.
Procedure
- Right‑click the package in the Rational® Rhapsody® browser
where you want to create and store your extended table layout and
select .
- In the browser, enter a name for this table design. You
might want to include the word "layout" in the name to help identify
your defined layouts from their generated views.
- Double-click the new layout in the browser to open its
Features window.
- On the General tab, select the Relation
Table check box to activate the following actions:
- Populate the Element Types tab with only
those terms based on links, dependencies, and associations.
- Activate the From Element Types tab.
- The "from element types" define the metaclasses to be used to
filter the elements to be displayed in the table.
- Only those elements in the scope that their "from" part is of
those metaclasses are shown in the table.
- Also used to populate the table with elements that are in the
scope and that can potentially be a "from" of one of the selected
element types.
- Activate the To Element Types tab.
- The "to element types" define the metaclasses to be used to filter
the elements to be displayed in the table.
- Only those elements in the scope that their "to" part is of those
metaclasses are shown in the table.
- On the Element Types tab, select
one or more element types to filter the data for your table.
Note: You
can select more than one element type if they are all based on the
same metaclass.
- On the Columns tab, create a table
design for your extended table layout. For more information, see Adding a new column to the table layout.
- On the From Element Types tab, select
the element types to filter the elements in the table by their "from"
element metaclass.
- On the To Element Types tab, select
the element types to filter the elements in the table by their "to"
element metaclass.
- Click OK.
What to do next
Create an extended table view for your extended table
layout so that you can view the table.
Tip: To change
an existing regular table layout to be an extended table layout, on
the Rational Rhapsody browser, right-click the regular
table layout and select .