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 ER/Studio automatically includes relationships between objects if related objects are part of the submodel. You can edit the submodel to include or exclude specific relationships. When you add a relationship, ER/Studio automatically includes the corresponding parent table in the submodel definition. 1 On the Data Model Window or Data Model Explorer, select one or more objects to include in the submodel. TIP: CTRL-click to select multiple objects. 2 Click Model > Create Submodel. 3 In the Create Submodel dialog, enter a name for the submodel. 4 From the list of objects, CTRL-click to select the objects to add to the submodel and then press the right arrow to add the selected objects to the submodel. 5 Click OK to create the submodel. Once you are finished creating a submodel, ER/Studio adds the submodel to the Data Model Explorer and displays the model in the Data Model Window. The following describe options that require additional explanation: Edit Submodel tab • Click Select Related Objects to add parent and child entities and dependent views or procedural logic. • If you select Inherit Objects Added to Nested Submodels, any objects you later add to submodels nested within the model or submodel will automatically be also added to the model. Attributes tab Lets you choose which attributes of the entities selected on the Edit Submodel tab to include in the submodel. Definition tab Enter or edit a definition for the submodel. Attachment Bindings tab Bind an external piece of information, or attachment to the submodel. You can also remove an attachment from an object, override an attachment binding’s default value, or change the position of a bound attachment. To override the value of the attachment you have moved to the Selected Attachments grid, double-click the Value field of the target attachment. ER/Studio opens the Value Override Editor or a list depending on the attachment datatype. Attachments are created in the Attachments folder of the Data Dictionary. For more information, see Attaching External Documents to the Data Model. Security Information tab Displays the current security information as defined in the Data Dictionary. You can add or edit security reporting information in by double-clicking the field you want to change. To set the model-wide default value for a property, go to the Data Dictionary tab and expand the Data Security Information node. For more information, see Enforcing Security Using Data Security Types and Properties. Notes • If you select a submodel to add to the new submodel, then all objects belonging to the source submodel will be added to the new submodel. • Deleting an object from a submodel does not delete the object from the Main model unless you select the Delete from Model option in the Delete dialog. • Once you have created a submodel, you can add objects to it by right-clicking an object in the main model or in another submodel and then selecting Apply to Submodel(s) from the shortcut menu. In the dialog that appears you can select which submodels to add the object to. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 78

USING ER/STUDIO > COMMON TASKS Synchronizing Submodels Use the Submodel Synchronization Utility to synchronize object positioning, color and font settings, display level, members and hierarchies of submodels within the same file or across disparate files. You can synchronize submodels between logical and physical models by adding, removing, and updating submodel items or you can synchronize submodels of the local model with a local ER/Studio file or a file in the ER/Studio Repository. Submodels in source and target models are matched by Submodel name. NOTE: You can synchronize submodels between logical and physical models by adding, removing, and updating submodel items. The following are examples of when synchronizing submodels can be useful. Example 1: You have existing logical and physical models in a *.dm1 file, each with 20 to 30 submodels. The physical model represents the current development environment. You use the Add New Physical Model function to add a physical model of the test environment. The physical model of the test environment is close but does not exactly match the existing physical model that is the development benchmark environment. To match the test and development physical models, you can use the submodel synchronization utility to add or transfer submodels from the development model to the test model within the same or across disparate *.dm1 files. Example 2: You have a logical and physical model within the same *.dm1. For reporting purposes, the same submodels are used in the logical and the physical models. You make substantial changes to the logical model, adding and removing objects or adding new submodels for new projects. You can use the Submodel Synchronization Utility to synchronize or promote these changes to the physical model. Example 3: Many people manage their submodels in the logical model and want to be able to move the structure to a physical or project model that was spun off from the Enterprise logical model. Members and display settings change often; this utility automates the process of synchronizing the submodels. NOTE: To synchronize two submodels where the target model does not have relationships, you must first use the Compare and Merge utility to bring across any relationships from the source to the target submodel and then use the Submodel Synchronize utility to synchronize the submodels. 1 In the Data Model Explorer, select the source submodel. 2 Click Model > Submodel Synch Utility. 3 Complete the pages of the Submodel Synchronization Utility and then click Finish to implement the changes to the view. Page 1 The following describe options that require additional explanation. For information on using the Quicklaunch utility, see Saving and Using Quick Launch Settings. Page 2 Your changes to the source model can be merged into one target model. Select the target from the list or go back to the first page and use the file browser controls to load the *.dm1 for the target file. The submodels to be merged can be selected on page 4. Page 3 • Synchronize members: If selected, the settings specified for the submodel on the Diagram and Object Display Options dialog will be inherited by the target submodel. • Synchronize submodel hierarchies: If selected, synchronizes nested submodels. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 79

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

<strong>ER</strong>/<strong>Studio</strong> automatically includes relationships between objects if related objects are part of the submodel. You can<br />

edit the submodel to include or exclude specific relationships. When you add a relationship, <strong>ER</strong>/<strong>Studio</strong> automatically<br />

includes the corresponding parent table in the submodel definition.<br />

1 On the Data Model Window or Data Model Explorer, select one or more objects to include in the submodel.<br />

TIP: CTRL-click to select multiple objects.<br />

2 Click Model > Create Submodel.<br />

3 In the Create Submodel dialog, enter a name for the submodel.<br />

4 From the list of objects, CTRL-click to select the objects to add to the submodel and then press the right arrow to<br />

add the selected objects to the submodel.<br />

5 Click OK to create the submodel.<br />

Once you are finished creating a submodel, <strong>ER</strong>/<strong>Studio</strong> adds the submodel to the Data Model Explorer and<br />

displays the model in the Data Model Window.<br />

The following describe options that require additional explanation:<br />

Edit Submodel tab<br />

• Click Select Related Objects to add parent and child entities and dependent views or procedural logic.<br />

• If you select Inherit Objects Added to Nested Submodels, any objects you later add to submodels nested within<br />

the model or submodel will automatically be also added to the model.<br />

Attributes tab<br />

Lets you choose which attributes of the entities selected on the Edit Submodel tab to include in the submodel.<br />

Definition tab<br />

Enter or edit a definition for the submodel.<br />

Attachment Bindings tab<br />

Bind an external piece of information, or attachment to the submodel. You can also remove an attachment from<br />

an object, override an attachment binding’s default value, or change the position of a bound attachment. To<br />

override the value of the attachment you have moved to the Selected Attachments grid, double-click the Value<br />

field of the target attachment. <strong>ER</strong>/<strong>Studio</strong> opens the Value Override Editor or a list depending on the attachment<br />

datatype. Attachments are created in the Attachments folder of the Data Dictionary. For more information, see<br />

Attaching External Documents to the Data Model.<br />

Security Information tab<br />

Displays the current security information as defined in the Data Dictionary. You can add or edit security reporting<br />

information in by double-clicking the field you want to change. To set the model-wide default value for a property,<br />

go to the Data Dictionary tab and expand the Data Security Information node. For more information, see<br />

Enforcing Security Using Data Security Types and Properties.<br />

Notes<br />

• If you select a submodel to add to the new submodel, then all objects belonging to the source submodel will be<br />

added to the new submodel.<br />

• Deleting an object from a submodel does not delete the object from the Main model unless you select the Delete<br />

from Model option in the Delete dialog.<br />

• Once you have created a submodel, you can add objects to it by right-clicking an object in the main model or in<br />

another submodel and then selecting Apply to Submodel(s) from the shortcut menu. In the dialog that appears<br />

you can select which submodels to add the object to.<br />

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

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

Saved successfully!

Ooh no, something went wrong!