ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation ER/Studio - Embarcadero Technologies Product Documentation

docs.embarcadero.com
from docs.embarcadero.com More from this publisher
24.12.2012 Views

USING ER/STUDIO > COMMON TASKS You can copy objects such as attributes, columns, entities, views, users, roles, and shapes from a logical model to a physical model and between models and submodels. You can copy functions, procedures, and schemas from one physical model to another and from one physical submodel to another physical submodel. 1 On the Main toolbar, click the Select tool. 2 In the Data Model Explorer, click the object to copy and drag it to the target node. TIP: You can select multiple objects of the same type by pressing and holding CTRL while selecting each object individually. The cursor changes to this symbol when the mouse is positioned over a valid target for pasting an attribute or column to another entity or table respectively. The cursor changes to this symbol when the mouse is positioned over an invalid target for pasting an object. .The cursor changes to this symbol when the mouse is positioned over a valid target for pasting an entity, table, or view to a submodel within the same model or to a different model in the Data Model Explorer. Resizing Objects When you add entities, tables or views to your data model, ER/Studio automatically determines the optimal dimensions of the object to fit the text and display the text of the object. However, you can resize data model objects such as entities, shapes, tables, text blocks, and views to control the presentation of your data models. For example, if you need to hide attributes in an entity or view, you can resize the entity or view to be smaller than the width of the longest attribute, therefore hiding text. NOTE: You cannot resize the Title Block of a data model. Manually Resize Data Model Objects You can manually resize entities, shapes, tables, text blocks, and views to control the presentation of your data models. 1 In the Data Model Window, select the object you want to resize. 2 Place the cursor over one of the handles, and then click and drag to resize the object. Automatically Resize Data Model Objects to Fit Text ER/Studio can automatically resize entities, tables, and views to display the entire object name and displayed contents. 1 In the Data Model Window, select the object you want to resize. 2 Click Format > Resize Entity/View. The object is resized to accommodate the full width of the text. If you want to adjust the object size manually, grab a sizing handle and reposition the object boundaries. TIP: You can also resize the selected object to fit the text by pressing CTRL+R or by right-clicking the object and then selecting Resize. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 70

USING ER/STUDIO > COMMON TASKS Changing Model Alignment, Distribution and Layout •To align a group of objects in a straight line, select the objects and then click one of the alignment buttons. •To distribute a group of objects, select the objects and then click an alignment button. •To rearrange a data model or task diagram using a different layout type, display the model, and then click one of the auto-layout buttons on the Layout & Alignment Toolbar. NOTE: To change the layout defaults, click Layout > Layout Properties. Changes affect the current project file only. For more information on changing Layout Properties, see Changing Data Model Layout. Finding an Entity, Table or View 1 Click Edit > Find Entity/View. 2 Enter the first letter or first few letters of the entity or view you want to find. The first matching entity or view found will be highlighted in the list. 3 If necessary, scroll through the list to find the object you’re looking for or type more letters to further limit the scope of the search. 4 Once you have found the object you are searching for, double-click the entry. ER/Studio highlights the object in the Data Model Explorer and the Data Model Window. TIP: You can also use the Universal Naming Utility to find strings in various objects, enabling you to for example find all entities with an attribute named city. For more information, see Searching for and Changing Object or Object Attribute Names. Locating an Object in the Data Model Window You can use this procedure to locate objects such as entities, tables, attributes, columns, indexes, procedures, keys, views, relationships, foreign keys, functions, procedures, and shapes. Some objects, such as users and roles, are not represented in the Data Model Window and so can’t be found using this method. Find and click an object in the Data Model Explorer. ER/Studio highlights the object in the Data Model Window. NOTE: When searching for a foreign key or relationship, ER/Studio focuses the Data Model Window on the parent and the relationship or foreign key is highlighted so you can follow the line to the child table. Editing an Object On the Data Model Explorer or Data Model Window, double-click the object that you want to edit. An object-specific editor displays where you can change the properties of the object selected. TIP: Alternatively, you can open the editor by selecting the object and then clicking Edit > Edit object type. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 71

USING <strong>ER</strong>/STUDIO > COMMON TASKS<br />

You can copy objects such as attributes, columns, entities, views, users, roles, and shapes from a logical model to a<br />

physical model and between models and submodels. You can copy functions, procedures, and schemas from one<br />

physical model to another and from one physical submodel to another physical submodel.<br />

1 On the Main toolbar, click the Select tool.<br />

2 In the Data Model Explorer, click the object to copy and drag it to the target node.<br />

TIP: You can select multiple objects of the same type by pressing and holding CTRL while selecting<br />

each object individually.<br />

The cursor changes to this symbol when the mouse is positioned over a valid target for pasting an attribute<br />

or column to another entity or table respectively.<br />

The cursor changes to this symbol when the mouse is positioned over an invalid target for pasting an<br />

object.<br />

.The cursor changes to this symbol when the mouse is positioned over a valid target for pasting an entity,<br />

table, or view to a submodel within the same model or to a different model in the Data Model Explorer.<br />

Resizing Objects<br />

When you add entities, tables or views to your data model, <strong>ER</strong>/<strong>Studio</strong> automatically determines the optimal<br />

dimensions of the object to fit the text and display the text of the object. However, you can resize data model objects<br />

such as entities, shapes, tables, text blocks, and views to control the presentation of your data models. For example, if<br />

you need to hide attributes in an entity or view, you can resize the entity or view to be smaller than the width of the<br />

longest attribute, therefore hiding text.<br />

NOTE: You cannot resize the Title Block of a data model.<br />

Manually Resize Data Model Objects<br />

You can manually resize entities, shapes, tables, text blocks, and views to control the presentation of your data<br />

models.<br />

1 In the Data Model Window, select the object you want to resize.<br />

2 Place the cursor over one of the handles, and then click and drag to resize the object.<br />

Automatically Resize Data Model Objects to Fit Text<br />

<strong>ER</strong>/<strong>Studio</strong> can automatically resize entities, tables, and views to display the entire object name and displayed<br />

contents.<br />

1 In the Data Model Window, select the object you want to resize.<br />

2 Click Format > Resize Entity/View.<br />

The object is resized to accommodate the full width of the text.<br />

If you want to adjust the object size manually, grab a sizing handle and reposition the object boundaries.<br />

TIP: You can also resize the selected object to fit the text by pressing CTRL+R or by right-clicking the<br />

object and then selecting Resize.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 70

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!