【问题标题】:Get foreign key in external content type to show up in list view获取外部内容类型的外键以显示在列表视图中
【发布时间】:2010-04-23 20:20:56
【问题描述】:

我遇到过有关如何设置外部内容类型(例如http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/02/02/it-s-easy-to-configure-an-external-list-with-business-connectivity-services-bcs-in-sharepoint-foundation-2010.aspx)的博客,但我没有看到任何示例说明当您的外部 SQL 数据库具有外键时该怎么做。

例如。我有一个包含订单和客户的数据库。一个订单只有一个客户,一个客户可以有多个订单。如何设置外部内容类型,以便在这些外部内容类型的列表视图中,我可以在其他类型之间跳转和可能的查找值?

【问题讨论】:

    标签: sharepoint content-type sharepoint-2010


    【解决方案1】:

    您需要在共享点设计器中的 CustomersOrders 表之间添加 一对多或主从关联。这些链接将帮助您:

    http://msdn.microsoft.com/en-us/library/ff394528(v=office.14).aspx

    http://msdn.microsoft.com/en-us/library/ee558417(v=office.14).aspx

    我已经测试过了。我的案例是使用共享点搜索在外部系统中搜索项目的附件。我有两个表 ProjectsAttachments 具有一对多的关系。我使用 Attachments ECT 上的关联操作为每个人制作了两个 ECT。

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-08-28
        • 2012-12-01
        • 1970-01-01
        • 1970-01-01
        • 2012-12-15
        • 2011-04-28
        • 1970-01-01
        相关资源
        最近更新 更多