6.3. Custom Table Views and Editor

In addition to the graphical editor for SysML models, the tool offers a customizable table view that also supports editing of element properties. The view can be derived from a SysML model or any element and provides a filtered view on (the subset of) the elements in a model. Each row in the table shows a single model element and its properties in subsequent columns. When there are changes, the view synchronizes automatically with the underlying model so that the table always shows the current model state.

You can create a new table view as follows:

  1. Select a SysML model, package, or part in the Model Browser.

  2. Open the context menu and choose Derive > Table View.

  3. In the New Table View dialog, enter a name for the view and select the scope for which to create the view. Confirm by clicking OK.

    The new table view opens automatically, with the Cover page opened.

  4. Click the Worksheet tab to view the model and configure the view to your needs.

Initially, the editor shows the complete model content as a structured tree view in a single column. You can now customize the view to show and edit element properties. Both aspects of customization are described in Configuring a Table View.

6.3.1. Configuring a Table View

The rows and columns of a table view can be configured to show and edit the relevant information about a SysML model. Configuring the view essentially means the following:

  • Each row represents a model element, and the first step in configuring a table is to select which SysML concepts the table view includes. Configuring the view allows you to filter the model content based on the metaclasses of SysML, namely language concepts such as block, part, port, and so on.

  • The second step of table configuration is related to the table columns. Each column can show one property of a SysML model element, for example, name, description, multiplicity, and so on. In addition to the SysML native properties, all profile properties can be added as columns to the table.

  • In addition to the element properties, a table can have additional columns that are only available for the view itself. You can add comments, computed columns, or analysis-related information (such as risk graphs or references to other data) to the table.

Based on these principles, the table configuration works as follows:

  1. In medini analyze, open the Worksheet page of a table and click the Configure table button at the top of the table.

    The SysML Table View Configurator dialog provides a tab for Rows and one for Columns.

  2. Select the Rows tab to start the configuration.

  3. Check all SysML concepts that you want to appear in the editor.

    Note that the table shows elements in the hierarchy in which they are contained. Therefore, additional elements such as the parents of the elements may appear, but they are not editable.

  4. Switch to the Columns tab to define which properties to show.

    Here you see all the concepts you previously selected on the Rows tab, including their properties.

  5. In the Available data fields column, select the properties or profile properties of the elements you want to add as columns in the table and use the right-arrow button to add them to the Selected data fields column. To remove columns, select a property in this column and use the left-arrow button to remove them.

  6. Note that in addition there is one entry shown named "Table Row". To add columns dedicated to the table so that they are only seen here, use the general profiling mechanism. For more information, see Profiling mechanism.

  7. The column order is determined by the order of the properties on the right side. The list of properties from top to bottom appear in the table from left to right. However, the column order is only the default and can be changed later using the Layout context menu as in any other table. For more information about table layout, see Table Layout.