SharePoint Designer BCS

Steps

      1. Sharepoint designer打开网站
      1. 点击左侧External Content Types

 

      1. 点击右上角External Content Type按钮
      1. 点击new external content type新建一个外部内容类型

 

      1. 输入Name  e-type,点击下面链接查找datasource

 

      1. 点击Add Connection,选择数据源类型(本例选择Sql Server)

 

      1. 输入数据库服务器,名称等,下面复选框的数据选择一个(如果需要以后可以改)。本例使用了secre store service(sss),关于三个复选框,参考:http://technet.microsoft.com/library/ee661743(office.14).aspx

 

 

      1. 配置完成后会列出数据库和表
      1. 右键点击表名,选择New Read List  Operation创建内容类型
      2. next,为避免数据量太大,填写filter
      3. next,选择identifier

P Errors and Warninqs No fields have been selected to be shown in the external item picker control. By default, all fields will be displayed in the external item picker dialog, which may not be the user experience you want. Select a small subset of elements that best describes an item and then select the 慡how in Picker? check box For each one. Data source element CON_ID has a nullable type. Nullable identifiers are not supported in Business Data Connectivity. A null value returned from this data source may cause runtime errors.J Finish Cancel Return Parameter Configuration P Data Source Elements CON_ID P PRODUCT_ID Properties CONJD zJ CON_ID CONJD (Click to Add) r P r r" src="file:///C:/Users/ZHENJU~1.SHA/AppData/Local/Temp/msohtmlclip1/02/clip_image007.png" width=434 height=374>

      1. Finish
      2. Sharepoint Designer:File->Save
      3. 打开sharepoint站点,查看网站所有网站内容->创建->列表->外部列表,创建
      1. 完成后即可出现列表

 

原文地址:https://www.cnblogs.com/csts/p/2570348.html