Display Attributes in Model
To display attributes in your ER diagram
From the Display Level box on the toolbar, select Attributes.
To define a display level for particular Workspace
Right-click the work area | Workspace Format... | Entities tab | Display Level | select Attributes.
To set the default Display Level properties for all models that you will create
Select Settings | Options | Physical Model | Entity tab | Display Level.
To define different colors for attributes on your Workspace
Select Settings | Options | Model section | Physical Model | Entity tab | Attribute Colors area.
Order Attributes
In the Entity Properties form | Attributes tab, you can order attributes:
- Manually via the green arrows at the bottom of the form
- Automatically (e.g. by Name, Caption, Data type etc.)
Manual Order
The order you will set via the green arrows will be applied in particular entity box in the Designer (all workspaces).
Example: Attributes in the Film Entity Properties form have been ordered manually using the green arrows and finally confirmed Apply. Now see the Film entity in Designer and compare its order of attributes with the order set in the Film Entity Properties form. The order is identical.
Automatic Order
Click the appropriate column name - e.g. click the Name column to sort attributes alphabetically.
This function offers you just a different view on the attributes in the Entity Properties form. It does not influence order of attributes in entity box in the Designer.
If you sort attributes this way, you cannot manually change order of attributes via the green arrows. If you click a green arrow, this message will display:
Click OK to activate the green arrows and order the attributes manually.
|
Note:
- No green arrow is enabled when there is no attribute or when there are attributes but none is selected.
- If any sorting function is turned on (e.g. sorting by name), green arrows are both active, so you can click any of them to turn off the sorting and set the ordinal order.
|
Copy Attributes
In Toad Data Modeler there are several methods and places where to copy attributes. You can select from the following options.
A. CTRL + Drag&Drop techniques on the Workspace
Use: This way, you can copy attributes within an entity and between entities on one WS. You can copy one or more attributes at one jump.
Example:
- See Display Attributes in Model for more information.
- Select an entity of which attributes you want to copy.
- Press CTRL and hold the key down. Click the attributes that you want to copy.
- Release CTRL key.
- Now click the selected objects, hold the mouse button down. Press CTRL again and hold the key down.
- Drag the selected attributes to a target entity. (If you want to copy the attributes within the entity, drag it a little in the entity box itself.)
- Release your mouse button and CTRL.
B. In the Entity Properties form | Attributes tab: CTRL + Drag&Drop techniques
Use:
- In the Entity Properties form, you can copy attributes within an entity and between entities of the same model or a different model.
- From the Entity Properties form and Workspace, and vice versa
- Between the Entity Properties form and Model Explorer
- Multiple selection is possible here - use SHIFT or CTRL keys
Example:
- Open the Customer Properties form of the Customer entity and the Employee Properties form of the Employee entity.
- Click the Attributes tabs in both forms.
- Press CTRL and hold the key down.
- Click the Name attribute in the Customer Properties form and drag it to the Employee Properties form | Attributes tab.
- Release your mouse button and CTRL.
C. In Model Explorer
Use: You can make copies of attributes:
- In Model Explorer itself
- From Model Explorer to a Workspace and vice versa
- Between Model Explorer and the Entity Properties form | Attributes tab
- Between two Model Explorers of two different models (see the following examples)
- Multiple selection is possible here - use SHIFT or CTRL keys
Example: Making a copy of attributes from Model Explorer to a WS.
- Unfold the Entities folder | 'EntityName' | Attributes tab in Model Explorer tree.
- Make selection of attributes.
- Press CTRL, hold it down.
- Click any selected attribute and drag the attribute to the appropriate entity box on the Workspace.
- Release the mouse button and CTRL.
|
Note:
- An attribute is copied with all its properties.
- It's possible to copy objects between models of a different database. However, some specific object properties cannot be copied - properties that are in the source model but do not exist in target model. E.g. Copy of entity from Microsoft SQL 2005 to MySQL 5.1. - Entity A has Partition Schema, Entity B has Fulltext Catalog. In these cases, the entities will not be copied to MySQL model.
|
Move Attributes
In Toad Data Modeler there are several methods how to move attributes. You can select from the following options.
A. Drag&Drop techniques on the Workspace
Use: This way, you can move one or more attributes to another entity at one jump.
Example:
- Display attributes in your model.
- Select an entity of which attribute/attributes you want to move.
- Press CTRL and hold the key down. Click the attributes that you want to move.
- Release CTRL.
- Drag the selected attributes to a target entity.
B. In Entity Properties Form | Attributes tab: Drag&Drop techniques
Use:
- In the Entity Properties form, you can move attributes within an entity and between entities. (To change order of attributes within an entity, use the green arrows.)
- From the Entity Properties form to a Workspace, and vice versa
- Between the Entity Properties form and Model Explorer
- Multiple selection is possible - use SHIFT or CTRL keys
Example:
- Open the Customer Properties form of the Customer entity and the Employee Properties form of the Employee entity.
- Click the Attributes tabs in both forms.
- Select attributes in the Customer Properties form and drag them to the Employee Properties form | Attributes tab.
C. In Model Explorer
Use: You can move attributes:
- Between entities in Model Explorer itself
- From Model Explorer to an entity on the Workspace directly
- Between Model Explorer and the Entity Properties form | Attributes tab
- Between two Model Explorers of two different models
- Multiple selection is possible - use SHIFT or CTRL keys
Tip: Use CTRL to select attributes of various entities in Model Explorer, and move them at one jump to another entity (of the same model or even a different model).
Example: Moving an attribute in Model Explorer.
- Unfold the Entities folder in Model Explorer tree.
- Select attributes (SHIFT or CTRL) and drag them to the Attributes or 'EntityName' folder of another entity.