Using a filter from the BCS object model

Source: Internet
Author: User
Tags object model visual studio 2010

In the previous blog post, we described how to use the Business Connection service object model on a SharePoint server to connect to the BCS service metadata store to get an enterprise core business system object, external content type and its methods, and how to execute an external content type.

This article demonstrates how to execute a Finder method with an external content type defined by a filter.

Steps

1, use SharePoint Designer 2010 to create a new external content type, using the Employees table of the AdventureWorks2000 database. Set a filter for the ECT in the first Name column.

Notice that we have checked the checkbox "Ignore filter if the value is the following".

2. Open Visual Studio 2010 and select a new visual Web part project from the SHAREPOINT2010 Project category.

3. In the design mode of the WebPart user control, add some text "Name:". Then drag and drop a text box and a button. Set the ID of the text box to Firstnametextbox and the button's ID to SearchButton. Finally, add a GridView. After the completion of the interface as shown below:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.