To configure a Currency ManagerHandle in a masterdetail relationship

  1. Scroll the Tool Palette to the Enterprise Core Objects category.
  2. Select the CurrencyManagerHandle component, and drag it to the ECO-enabled Windows Form.
  3. Select the ExpressionHandle component, and drag it to the form. This ExpressionHandle will manage the detail side of the relationship.
  4. Select the CurrencyManagerHandle component on the designer, and set its RootHandle property to the ExpressionHandle on the master side of the relationship.
  5. Set the CurrencyManagerHandle component's BindingContext property to the DataGrid that displays the objects on the master side of the relationship.
  6. Select the detail ExpressionHandle and set its RootHandle property to the CurrencyManagerHandle object.
  7. Set the Expression property of the detail ExpressionHandle to an OCL expression that completes the expression on the master side of the relationship.

For example, if the Customer/Order relationship is expressed in an association called CustomerOrders, and orders is the name of the association end (or role), then the OCL

expression for the ExpressionHandle is simply orders. The complete OCL expression can be thought of as Customer.alllnstances.orders.

Finally, you can complete the user interface by adding a second DataGrid to display the detail objects.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment