Creating tabular views
Review the procedures for creating rendered tabular views. For basic view creation procedures, see the Views basics page.
Creating tabular views
Creating tabular views via the Create View command
The Create View command invokes the View Creation dialog/submenu, which displays the following view definitions:
- Standard predefined tabular view definitions. See the table on the Tabular views page for a full list.
- Custom tabular view definitions
To create tabular views via the Create View command
In the Containment tree, right-click an element that would be the owner of the new tabular view.
In the shortcut menu, click Create View. In the submenu, click the appropriate tabular view.
The view is created as a view usage element and named after its owner.
Creating tabular views via the Textual Editor
A rendered view is produced when a view usage is defined by a view definition that carries a renderer. For tabular views, use:
- Standard predefined tabular view definitions. See the table on the Tabular views page for a full list.
- Custom tabular view definitions
To create tabular views via the Textual Editor
- In the Textual Editor, place the cursor where you want to create a view.
- Declare the view keyword, specify the element name, and then define it by the needed view definition.
- Click the Synchronize button.
view 'Generic Table' : DS_Views::TabularViews::gt; // new view element is defined by the 'gt' i.e., tabular view definition 'Generic Table'
view 'Requirements Table' : DS_Views::TabularViews::rt; // new view element is defined by the 'rt' i.e., tabular view definition 'Requirements Table'
Creating undefined tabular views using renderers via the Textual Editor
Instead of creating tabular views defined by tabular view definitions that already have specified renderers, you can specify the renderer directly for the new view.
- See the table of available renderers on the Rendering views page.
To create undefined views using renderers via the Textual Editor
- In the Textual Editor, place the cursor where you want to create a view.
- Declare the view keyword, and specify the element name.
- In the body of the view element, declare the render keyword followed by the needed renderer.
- Click the Synchronize button.
view newView { // new view element is not defined by any view definition
render DS_Views::CoreViews::asTable; // the view has a renderer asTable, rendering it as a tabular view
}