Associations can be created when there is a relationship between two external content types, for example, a customers external content type and an orders external content type, that point to data, where each customer may have one or many orders. This is known as a one-to-many , master-detail or master-child relationshiop. Defining an association documents this relationship in the BDC model.

You only need to create an association if you wish to use the Business Data Related List Web Part to provide a relationship—a Web Part connection—between itself and a Business Data List Web Part as shown in the next screenshot, or when you customize a solution for Office applications, such as adding a custom task pane to Outlook, where the task pane shows both customer details and all active orders for that customer.
Two Web Part showing two related external content types

An external content type’s profile page also use Business Data Web Parts and will use associations to display related data as well as the item picker.

Note. You can use the Central Administration web site and SharePoint Designer to create profile pages.

To build an association with Meta Man, use the following steps:

  1. Create at least two external content types (entities) to the model diagram area.

  2. Ensure that the both external content types are part of a primary/foreign key relationship.

  3. Move the mouse pointer over one of the external content types, and connection points appear (small squares).

  4. Drag the connection point from one side of the external content type to any connection point on the second external content type, as shown in the diagram below:
    Drag from the primary key to foreign key

    Once you have dragged the connection point between the two external content types, the association properties page is displayed.
    Select the two columns that join the two external content types

  5. Select the two columns that have common values in the two external content types.

  6. Click Create.

    A line appear between the two external content types on the BDC model design surface. This is known as the association line.
    Assocation line displays that there's a relationship between the two external content types

References

Create associations in SharePoint 2013
Using Business Data Web Parts
How to: Configure Business Data Web Parts to Navigate ECT Associations
Creating Intermediate Declarative Outlook Solutions Using Business Connectivity Services

Deploying the BCS model →

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
For customer support, please contact us here.

Post Comment