SharePoint Designer BCS
Steps
- Sharepoint designer打开网站
- 点击左侧External Content Types
- 点击右上角External Content Type按钮
- 点击new external content type新建一个外部内容类型
- 输入Name e-type,点击下面链接查找datasource
- 点击Add Connection,选择数据源类型(本例选择Sql Server)
- 输入数据库服务器,名称等,下面复选框的数据选择一个(如果需要以后可以改)。本例使用了secre store service(sss),关于三个复选框,参考:http://technet.microsoft.com/library/ee661743(office.14).aspx
- 配置完成后会列出数据库和表
- 右键点击表名,选择New Read List Operation创建内容类型
- next,为避免数据量太大,填写filter
- 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>
- Finish
- Sharepoint Designer:File->Save
- 打开sharepoint站点,查看网站所有网站内容->创建->列表->外部列表,创建
- 完成后即可出现列表