DOCS

Editing Items

To edit an item, you must first open it in the Item Editor.

To open an item for editing

  1. Select the item you want to edit, either in the navigation tree of the Navigation frame, or in a diagram, a table, or a relationship tree in the Editor frame.
  2. Double-click the item.
  3. Or  

    Right-click the item, and then select Open from the context menu.

    Or  

    Select ItemOpen from the main menu bar.

When an item is opened for editing, the Item Editor opens in a tabbed page in the Editor frame, as shown in this example (outlined in red):

This image shows the Item Editor tab in the Editor frame.

The Item Editor’s page tab provides information on the save state of the opened item. An asterisk (*) at the beginning of the item name on the page tab indicates that you modified the item but did not yet save it. If you have not made changes to the item or if you already saved your changes, the asterisk is not visible:

This image shows the difference between an unsaved and saved item.

Editor views, including the Item Editor, are different from all other views in Metability: They contain pages within tabbed pages, or subpages, that enable you to edit entities of complex structure (for example, items that have multiple attributes). The subpage tabs, by default, are located at the bottom of the tabbed page.

When an item is opened for editing, it usually opens to the Overview subpage, and this is the only subpage that is initially present:

This image shows the item opened for editing the Overview subpage.

To save the modified item to the database, you have various options.

To save the item that has the focus in the Editor frame

> Select FileSave from the main menu bar.

Or  

Click the Save icon in the main toolbar.

Or  

Press the key combination Ctrl+S.

To save all modified items (and also all modified stored query results)

> Select FileSave All from the main menu bar.

Or  

Click the Save All icon in the main toolbar.

Or  

Press the key combination Ctrl+Shift+S.

Working with the Overview Subpage

The Overview subpage contains two groups:

  • Item Information:
  • This group contains all relevant general information about the item: name, ownership, recent change history, database and subject area, and access rights.

  • Attributes:
  • This group contains the attributes of the item. The content of the list depends on your settings in the Editor subnode of the Preferences dialog (see Editor).

    You also can modify the settings directly on the Overview subpage: Click the Attribute List Preferences icon at the right end of the Attributes group title and then select in the menu that opens the types of attributes you want to display:

    This image shows the list of attribute preferences.

Each attribute row contains these elements:

  • A check box.
  • The check boxes enable you to select attributes to open by subsequently clicking the hyperlink Open selected attributes. Since value attributes and binary attributes do not have separate Attribute Edit subpages, the check box is provided only for text, link, and namespace attributes.

  • An icon that indicates the attribute type:
  • Icon

    Attribute Type

    Binary attribute

    Link attribute

    Namespace attribute

    Text attribute

    Unformatted link attribute

    Value attribute

  • The attribute name.
  • The names of text attributes, formatted and unformatted link attributes, and namespace attributes are displayed as hyperlinks. When you click the hyperlink, a subpage for editing the attribute opens.

  • An Open the external editor icon .
  • For text and binary attributes, these icons open the attribute in an external editor. For namespace, value, and both types of link attributes, the icons are not available.

    For binary attributes, the function can work correctly only if the type of the binary content is the same as the content type that has been defined for the attribute in the information model on which the subject area is based.
  • The attribute content.
  • For text, namespace, and both types of link attributes, the displayed contents depend on your settings in the Generate Preview for Attributes group in the Editor subnode of the Preferences dialog (see Editor). Since binary and value attributes do not have Attribute Edit subpages, editing controls are provided in addition to the displayed attribute contents.

    This table lists the displayed contents and editing controls for each attribute type:

    Attribute Type Content Information

    Binary attribute

    If the attribute has content, the text *** has content *** is displayed in the attribute content field; otherwise, the field is empty. To the right of the field, three pairs of icons and hyperlinks provide editing actions for the binary attribute (see Editing Binary Attributes for details).

    Link attribute, unformatted link attribute

    When preview is active: If any links are defined in the attribute, the text Number of relationships: <n> is displayed, where <n> is the number of links. Otherwise, the field is empty.
    When preview is inactive: If the attribute has content, the text *** has content *** is displayed; otherwise, the field is empty.

    Namespace attribute

    When preview is active: If any namespace items are defined in the attribute, the text Number of relationships: <n> is displayed, where <n> is the number of namespace items. Otherwise, the field is empty.
    When preview is inactive: If the attribute has content, the text *** has content *** is displayed; otherwise, the field is empty.

    Text attribute

    When preview is active: The attribute text is displayed. If the text does not fit into the field, three dots are displayed.
    When preview is inactive: If the attribute has content, the text *** has content *** is displayed; otherwise, the field is empty.

    Value attribute

    The attribute text is displayed. You can edit the text directly in the field. See Editing Value Attributes and Special Text Attributes for details.

  • The attribute type: Binary, Link, Namespace, Text, or Value attribute.
  • Whether this field is present depends on your settings in the Attribute List Settings subnode of the Preferences dialog (see Attribute List Settings).

  • The attribute rule: Optional, Mandatory, Info, or Read-only.
  • Whether this field is present depends on your settings in the Attribute List Settings subnode of the Preferences dialog (see Attribute List Settings).

To open a single attribute

> Click the attribute name (third column in the attribute list).

To open multiple attributes

> Select the desired attributes in the check boxes in the first column of the attribute list, and click the Open selected attributes hyperlink above the attribute list.

To open all attributes

> Click the Open all attributes hyperlink above the attribute list.

When you open an attribute for editing, the Attribute Edit subpage opens within the Item Edit view. For details, see Working with Attribute Edit Subpages.

To close all opened attributes

> On the Overview subpage, click the Close all attributes hyperlink.

In subject areas that support extended namespace attributes (that is, subject areas of Release 3.7), items can exist in the namespace of another item without having an entry in a namespace attribute of that item. Such items are called unclassified namespace members.

To display unclassified namespace members

> On the Overview subpage, click the Show unclassified namespace members hyperlink above the attribute list.

The Unclassified Members subpage opens displaying a list of unclassified namespace members:

This image shows the Unclassified Members subpage.

For information on how to reassign the unclassified members to a namespace attribute, see To assign an unclassified namespace member.

The icons in the local toolbar of this subpage provide these functions:

Icon

Command Function

Customize Columns

Opens a dialog where you can select columns for display.

Select All Items

Selects all items in the list.

Deselect All Items

Clears all selected items.

Invert Selection

Clears all selected items, and selects all unselected items.

Delete the Selected Namespace Members

Removes selected items from the namespace (that is, the items are deleted).

This icon is active only when an item is selected.

Attribute Info

Opens the Meta Information view, which displays a short description for unclassified namespace members.

Menu

Opens a drop-down list providing access to all local toolbar commands.

Read-only Mode Command Buttons

There are three situations in which the Item Editor opens in read-only mode:

  • When an item was created by another user and you have only read access rights for the subject area, the header in the Overview subpage looks like this:
  • This image shows the information that the user has only read access rights for that item.
  • When an item is locked because another user is currently editing it, the header in the Overview subpage looks like this:
  • This image shows the information that the item is locked for editing by a user.
  • When the Open Editor in read-only mode check box has been selected in the user preferences under MetabilityItemsEditor (see Specifying Other User-defined Settings), the header in the Overview subpage looks like it does for a locked item.

When the Item Editor is in read-only mode, these command buttons are available above the top right edge of the view:

Command Function

Refresh item

Reloads the item from the database.

Edit item

Tries to change to edit mode and lock the item for editing. If the attempt to edit the item fails because the item is still locked, an error message displays:

This image shows the error message when the attempt to edit an item fails.

Working with Attribute Edit Subpages

These types of attribute each have an Attribute Edit subpage that is appropriate to their specific set of data:

By clicking a tab, you move its Attribute Edit subpage to the foreground. In this example, the Attribute Edit subpage for the DEFINITION attribute is in the foreground:

This image shows the attribute edit subpage in the foreground.

Text attributes for which a specific data type has been set do not provide an Attribute Edit subpage; they are edited on the Overview subpage. For details, see Editing Value Attributes and Special Text Attributes.

Editing Text Attributes

You can edit text attributes in multiple ways:

  • Directly on the Overview subpage.
    • You must enable the editing of text attributes on the Overview page in your preferences. For details, see Editor.
    • Attributes for which a specific data type or a list of valid values has been set always are edited on the Overview subpage.
  • On the Attribute Edit subpage, in which you can enter and edit text as you would in any other simple, Windows-based text editor. You can open the subpage by clicking the text attribute’s name hyperlink.
  • If you selected to use Eclipse editors for attributes with MIME types other than text/plain in the MetabilityItemsEditor subnode of the Preferences dialog, such attributes open in a new tabbed page instead of the subpage.
  • In the default editor of your operating system. You can open it by clicking the Open the external editor icon or by opening the Attribute Edit subpage and then pressing the key combination Ctrl+Alt+E on your keyboard.
  • You can change the key combination in your preferences. For details, see Eclipse-related Preferences.

The Attribute Edit subpage for text attributes has two command buttons:

  • Apply: Applies text changes to the attribute.
  • Close: Closes the subpage.

If you have made any changes to the text and have not clicked the Apply button yet, you are prompted about whether you want to apply the changes to the text attribute:

This image shows the prompt to apply the changes made to the text.
  • Click Yes to apply the changes and close the subpage.
  • Click No to close the subpage without applying the changes.
  • Click Cancel to continue editing the attribute.

Applying changes to an attribute does not mean that these changes are actually stored in the database. When you close an item that contains changed attributes, you will be prompted whether you want to save the item.

You can save an item before closing it by selecting the Save option from the File menu, which becomes active when an item with unsaved changes has the focus.

Editing Value Attributes and Special Text Attributes

These types of attributes always are edited directly on the Overview subpage:

For regular value attributes and single-line text attributes, click inside the attribute’s text field to edit the attribute value:

This image shows the text field to edit the attribute value.

If a range of valid values has been defined for a value or text attribute, a tooltip displays when you click in the text field informing you about the permitted ranges:

This image shows the permitted value ranges.

For attributes for which a list or a sequence of valid values has been defined, the text field is replaced by a drop-down list from which you can select the values:

This image shows the dropdown to select values.

For attributes of data type real and integer, a tooltip displays when you click in the text field informing you about the data type. When you edit the attribute, Metability verifies that the entered attribute value conforms with the attribute’s data type.

For attributes of data type boolean, the text field is replaced by option buttons:

This image shows the attributes of data type boolean.

For attributes of data type date, the text field is replaced by Edit and Delete buttons:

This image shows the attributes of data type date.

Clicking the Edit button opens a dialog where you can select the date and, optionally, the time that you want to store in the attribute:

This image shows the calendar dialog to edit the date.

Editing Unformatted Link Attributes

The Attribute Edit subpage for editing unformatted link attributes is similar to the subpage for editing text attributes. The difference between them is the content of their local toolbar and the context menu (see Context Menus in the Editor Frame).

Unformatted link attributes are edited like text attributes, but they can have links embedded in their flow text. You can create these links in two ways:

  • By typing in the target item type and name, plus, in parentheses, the optional qualifier.
  • By calling up a dialog to insert a link into the flow text.

Example:

This image shows the Attribute Edit subpage for editing unformatted link attributes.

The target item of a link must be specified by a link key and a traditional 32 character item name, plus an optional qualifier, enclosed within parentheses. It is not possible to specify the target item by the structured name. The link key references the item type of the target item. In Rochade, every item type in an information model is mapped to a link key. The link key can be, but must not necessarily be identical with the item type name.

In the example, ->ITX_PERSON is the link key for the item type ITX_PERSON and GIBSON_MILDRED and LEARY_GWEN are the item names.

The icons in the local toolbar of this subpage provide these functions:

Icon

Command Function

New Link Target

Opens the New Item dialog, in which you can specify a new target item for a new link. This option is available when the cursor is positioned inside normal flow text.

For details, see To add a link to a new item.

Add Link

Opens the Search for Items dialog, in which you can specify an existing target item for a new link. This option is available when the cursor is positioned inside normal flow text.

For details, see To add a link to an existing item.

Remove Link

Removes a link from the flow text. This option is available when the cursor is positioned inside a link specification.

Open Link Target Item

Opens the referenced item. This option is available when the cursor is positioned inside a link specification.

Modify Link

Opens a dialog in which you can edit the qualifier. This option is available when the cursor is positioned inside a link specification.

Attribute Info

Opens the Meta Information view, which displays a short description of the attribute’s purpose.

Menu

Opens a drop-down list providing access to all other local toolbar commands.

Editing Link Attributes

The Attribute Edit subpage for editing link attributes is different than the subpage for normal text attributes, since link attributes possess special properties:

This image shows the Attribute Edit subpage for editing link attributes.

The icons in the local toolbar of this subpage provide these functions:

Icon

Command Function

Customize Columns

Opens a dialog where you can add columns to or remove them from the display.

Select All Items

Selects all items in the list.

Deselect All Items

Clears all selected items.

Invert Selection

Clears all selected items, and selects all unselected items.

Add a Link to a New Item

Starts the process of adding a link to a new item. For details, see To add a link to a new item.

Add a Link to an Existing Item

Starts the process of adding a link to an existing item. For details, see To add a link to an existing item.

Delete the Selected Links

Immediately removes the currently selected links from the list. You can revoke this remove operation by clicking the Close button and then clicking No when you are asked if you would like to apply changes.

The Delete icon is active only when an item is selected.

Move Up the Selected Links

Moves the selected links upward in the sequence of links.

Move Down the Selected Links

Moves the selected links downward in the sequence of links.

The icons are active only when the link attribute is defined with ordered links in the model and when at least one item is selected.

Attribute Info

Opens the Meta Information view, which displays a short description of the attribute’s purpose.

Menu

Opens a drop-down list providing access to all other local toolbar commands.

The buttons at the bottom of this subpage provide these functions:

  • Apply
  • This button becomes active when you make changes to the links. It applies these changes to the link attribute.

  • Close
  • This button closes the subpage for editing link attributes. If you have made any changes to the links and have not clicked the Apply button yet, you are queried about whether you want to apply the changes to the link attribute:

    This image shows the prompt to apply the changes made to the link attribute.
    • Click Yes to apply the changes and close the subpage.
    • Click No to close the subpage without applying the changes.
    • Click Cancel to continue editing the link attribute.

To edit an item in the link list

> Double-click the item you want to edit. The item will be opened in an Item Edit view. From here, you can proceed to edit the item like any other item (that is, edit its attributes in their Attribute Edit subpages).

To add a link to a new item

  1. Click the Add a Link to a New Item icon.
  2. Since a new item is actually created in this process, the Namespace Item page opens in the New Item dialog :

    This image shows the Namespace Item page in the New Item dialog.

    If your subject area does not support namespace attributes, the dialog opens directly to the page displayed in step 4.

  3. Click the Use root as namespace option button to create the new item in the root namespace.
  4. Or  

    Click the Use an item as namespace option button and then Change to select an item that spans the namespace for the new item.

  5. Click Next.
  6. The Type Selection page displays:

    This image shows the Type Selection page in the New Item dialog.
  7. Select an item type for the new item.
  8. Click Next.
  9. The Item Name page displays:

    This image shows the Item Name page in the New Item dialog.
  10. Enter a name for the new item.
  11. If you are creating an item within the namespace of another item, the name of this namespace is displayed below the subject area name.
  12. Click Next.
  13. The New Item page displays:

    This image shows the New Item page in the New Item dialog.
  14. Select the Initialize item content check box if you want the new item to be active; otherwise, it will be an empty item.
  15. Click Finish to create the item.
If you selected the Open created item in editor check box, the item opens for editing; otherwise, you are returned to the Attribute Edit subpage.

To add a link to an existing item

  1. Click the Add a Link to an Existing Item icon.
  2. The dialog that opens is similar to the Search view. For a description of its options, see Item Search Queries.

    You can create links only to items of the item types listed in the Item types list. The item types that are valid for a particular link attribute are defined in the subject area’s information model.
  3. Specify your search criteria and then click Search.
  4. The items that match the search criteria are displayed in the result list:

    This image shows the search result in the Search for Items dialog.
  5. Select one or more items and then click Add to add a link to the selected items.

Editing Namespace Attributes

You can use either the Attribute Edit subpage for namespace attributes or the navigation tree to work on items in the namespace of another item.

Using the Attribute Edit Subpage for Namespace Attributes

This subpage lists all items of a namespace with their types and names:

This image shows the subpage with the list all namespace items.

The Close button below the list of namespace members closes the subpage for editing namespace attributes. The icons in the local toolbar of this subpage provide these functions:

Icon

Command Function

Customize Columns

Opens a dialog where you can add columns to or remove them from the display.

Select All Items

Selects all items in the table.

Deselect All Items

Clears all selected items.

Invert Selection

Clears all selected items and selects all unselected items.

Create a New Namespace Member and Assign it to the Attribute

Starts the process of creating a new item in the current namespace (see To create a new namespace member).

Assign Unclassified Namespace Members to the Attribute

Displays a list of unclassified namespace members so you can add them to the table.

The icon is available only for subject areas that support unclassified namespace members (that is, subject areas of Release 3.7).

Detach the Selected Namespace Members from the Namespace Attribute

Detaches the selected items from the namespace attribute (that is, the items become unclassified namespace members).

The icon is available only for subject areas that support unclassified namespace members (that is, subject areas of Release 3.7).

Move Up the Selected Relationships

Moves the selected relationships up in the list by one position.

The icon is enabled only for namespace attributes for which you defined in the information model that the relationship order is significant.

Move Down the Selected Relationships

Moves the selected relationships down in the list by one position.

The icon is enabled only for namespace attributes for which you defined in the information model that the relationship order is significant.

Attribute Info

Opens the Meta Information view, which displays a short description of the attribute’s purpose.

Menu

Opens the local drop-down menu. Its commands correspond to the other local toolbar commands listed in this table.

To edit an item that belongs to a namespace

> Double-click the namespace member you want to edit.

The item opens in an Item Edit view. From here, you can proceed to edit the item as described in Editing Items.

To create a new namespace member

  1. Click the New Member icon in the local toolbar.
  2. The New Item dialog opens to the Type Selection page:

    This image shows the Type Selection page in the New Item dialog.
  3. Select the type of item that you want to create, and click Next.
  4. You can select only item types that are assigned to the current namespace attribute in the information model.
  5. Enter a name for the new item, and click Next:
  6. This image shows the Item Name page in the New Item dialog.

    The final page of the New Item dialog appears:

    This image shows the final page of the New Item dialog.
  7. Select the Initialize item content check box if you want the new item to be active; otherwise, it will be an empty item.
  8. Click Finish to create the item and add it to the namespace.

To detach a namespace member

  1. Select the items that you want to detach.
  2. Click the Detach the Selected Namespace Members from the Namespace Attribute icon in the local toolbar.
  3. The selected items are detached from the namespace attribute and added to the pool of unclassified namespace members.

For deleting a namespace member, use the procedure as described under Using the Navigation Tree.

To assign an unclassified namespace member

  1. Open the item that spans the namespace of the unclassified namespace member.
  2. Open the namespace attribute to which you want to assign the namespace member.
  3. In the local toolbar, click the Assign Unclassified Namespace Members to the Attribute icon.
  4. The Assign Members dialog appears:

    This image shows the Assign Members dialog.
  5. Select the unclassified namespace member that you want to assign, and click OK.

The selected item is removed from the pool of unclassified namespace members and assigned to the namespace attribute.

To delete an unclassified namespace member

  1. Open the Unclassified Members subpage as described in To display unclassified namespace members.
  2. Follow the steps described in Steps to delete items.

Using the Navigation Tree

You can use the navigation tree to open, create, and delete items that belong to the namespace of another item:

This image shows the navigation tree.

While the Attribute Edit subpage for namespace attributes displays only the namespace items that are assigned to that namespace attribute (that is, classified namespace members), the navigation tree displays all namespace items of an item (that is, classified and unclassified namespace members). The example above shows the corresponding views for the item ITX_DATABASE Northwind, which spans a namespace for items of the type ITX_TABLE.

  • To commence editing a namespace item from the navigation tree, proceed as described under Editing Items.
  • To create a new namespace item in the navigation tree, select either the item that spans the namespace or the item type on the next level down (in the example, item ITX_DATABASE Northwind or item type ITX_TABLE) and then proceed as described under Creating Items.
  • To delete a namespace item, select it in the navigation tree and then proceed as described under Deleting Items.

The navigation tree provides further options for processing itemsincluding namespace itemsin general, and also some specific options for namespace items. For an overview, see Accessing Item Functions.

Editing Binary Attributes

For binary attributes, no Attribute Edit subpages are provided—the required editing actions are available on the Overview subpage and let you import attribute content from an external file, export existing attribute content to an external file, and delete existing attribute content:

This image shows the options to edit binary attributes.

With binary attributes, the content column is divided into four subcolumns:

Subcolumn Function

Content indicator

If the binary attribute has content, this is indicated by the text

*** has content ***.

Otherwise, this field is empty.

Hyperlink for importing binary attribute content from an external file.

Hyperlink for exporting binary attribute content to an external file. If no binary attribute content exists, the hyperlink is inactive.

Hyperlink for deleting binary attribute content. If no binary attribute content exists, the hyperlink is inactive.

Using MIME Type-specific Editors for Attributes

In interaction with Eclipse, Metability provides an edit mode that enables you to edit attributes using custom editors depending on the attributes’ MIME type. This topicdescribes the steps required to associate an editor with an attribute.

To associate an editor with an attribute

  1. Open Model Administration.
  2. Open the information model that contains the item type to which the attribute is attached that you want to associate with an editor.
  3. Specify a MIME type for the attribute:
    1. Open the item type to which the attribute is attached.
    2. Select a MIME type from the Content format drop-down list or enter a new type in the list field (for example, application/pdf):
    3. This image shows the option to select a MIME type from the Content format drop-down list.
    4. Save your changes.
  4. Generate the information model, and reorganize any subject area based on it.
  5. Close Model Administration.
  6. For detailed information on how to perform the individual steps, see Model Administration.

  7. Click WindowPreferences to open the Preferences dialog.
  8. Define a file extension for the MIME type:
    1. Expand the MetabilityItemsEditor node and then click the Attribute MIME Types subnode:
    2. This image shows the list of defined MIME Types.
    3. Search the Defined MIME types table for the MIME type that you specified for the attribute and then memorize the extension assigned to it (for example, pdf).
    4. If the table does not contain the MIME type, click the Define button to open the Define a MIME Type dialog:

      This image shows the Define a MIME Type dialog.

      Enter a MIME type and a file extension and then click OK to add the new type. Do not precede the file extension with an asterisk (*) or a dot (.).

  9. Associate an editor with the file extension:
    1. Expand the GeneralEditors node and then click the File Associations subnode:
    2. This image shows the option to associate an editor to a file type.
    3. Search the File types list for the MIME type’s file extension. The file extensions are preceded by an asterisk and a dot (for example, *.pdf).
    4. If the list does not contain the extension, click the Add button next to it to open the Define a New File Type page of the New File Type dialog:

      This image shows the Define a New File Type page in the New File Type dialog.

      Enter a file extension preceded by an asterisk and a dot and then click OK to add the extension and return to the Preferences dialog.

    5. Select the entry for the file extension to display the currently associated editors in the Associated editors list.
    6. If the list is empty or does not contain the desired editor, click the Add button next to it to open the Editor Selection dialog:

      This image shows the Editor Selection dialog.

      Click the Internal Editors option button and then select an editor in the list.

      Or  

      Click the External Programs option button and then the Browse button to select an executable file from the file system.

      Finally, click OK to return to the Preferences dialog.

    7. In the Associated editors list, select the editor entry and then click the Default button to make it the default editor for the file extension.
  10. Enable the MIME type-specific editor mode:
    1. Expand MetabilityItems node and then click the Editor subnode:
    2. This image shows the Editor subnode.
    3. In the Editor Mode group, select the Use Eclipse editors for attributes with MIME types other than text/plain check box.
  11. Close the Preferences dialog.

Now, if you open an item in the Editor frame and then click the name hyperlink of the pertinent attribute, it opens in the associated editor:

This image shows an item open in its associated editor.

Changes in the attribute’s content are updated in the database when you close the editor.

If you define the same MIME type for multiple types of attributes, they will open in the same type of editor.