IT tutorials
 
Technology
 

Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 4) - External Data Picker Control

1/16/2014 3:04:24 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

External Data Picker Control

We’ve now created a new Product external content type that has a relationship with our existing Model content type. To see the effects of this association in action, create a new external list based on the Product content type. In the Create List and Form dialog, set the List Name to Products.

By browsing to the new Products list using Internet Explorer, you’ll see that when editing an item in the list, models can be selected from a list using an External Data Picker control, as shown here:

You should notice a few things when you’re using the data picker. First, the list displays all rows from the Models table. If you enter criteria in the Find box, you’ll get an error message, as shown next. Second, if you select an item from the list and then click OK, the Product Model control contains the ID of the selected item rather than the user-friendly text you might expect.

Both of these problems are easy to resolve and take us back to our Model content type.

Setting Picker Display Text

When opening the Model content type in Summary View, you’ll notice a list of fields on the right side of the page.

  1. Select the Name field, and from the ribbon, click the Set As Title button.

  2. Save the changes to the external content type, and then review the Products list in Internet Explorer.

This time, when editing an item, the model name is displayed when a model is selected rather than the ID.

Each external content type can have a title column defined. If no title is defined, the ID is used instead. Any column in the entity can be flagged as the title.

Adding Picker Search Functionality

The next problem requires a few more mouse clicks to resolve. Open the Model content type in Operations Design View. Since we want to change the way lists of items are returned, we need to adjust the settings for the Finder operation.

  1. In SharePoint Designer, Finder operations are created using the Read List type. Highlight the Read List operation, and then select Edit Operation from the ribbon.

  2. In the Filter Parameters step of the Edit Operation wizard, click Add New Filter Parameter to add an additional filter.

  3. Set the Data Source Element to Name, and then click the Click To Add link to show the Filter Configuration dialog.

  4. Create a new filter named Search Filter and set the Filter Type to Wildcard.

  5. Since we don’t want to apply this filter where no criteria have been entered, check the Ignore Filter If Value Is checkbox. The default option of Null is fine.

    A couple additional checkboxes warrant some explanation:

    • The Is Default checkbox determines whether the filter should be selected by default in the picker control. You’ll remember that the picker control contains a drop-down list of search types as well as a text box for the user to enter search criteria. A check in the Is Default checkbox means the filter will automatically be selected as the default in the search types drop-down.

    • The Use To Create Match List In Data Picker checkbox also relates to the default search. However, rather than setting the default search in the search types drop-down, the checkbox defines which filter should be used when the user types a value in the External Data Picker control without clicking the picker button. So, for example, on an edit page containing an External Data Picker control, the control is rendered as a text box with two buttons. The rightmost button opens up the picker, and the left button performs a behind-the-scenes search using the value entered in the text box. If a single match is found, the item is selected. If not, a list of suggestions are presented.

      With an understanding of the Is Default and Use To Create Match List In Data Picker options, set both of these options to true.

  6. Click Finish to apply the changes, and then save the external content type.

This time, when viewing the changes in the edit form, try entering jersey in the product model text box, and then click the button to the immediate right. You’ll see an error message indicating that no exact match was found, and you can click the underlined text to see a list of suggestions, as illustrated here:

The picker now behaves as expected, filtering results based on the criteria entered in the textbox and allowing search within the pop-up dialog.

Tip

When moving between different object types in SharePoint Designer, it’s possible to pin one category of objects to the left sidebar. In Figure 1, the External Content Types explorer is pinned to the navigation bar while the List and Libraries explorer is visible in the main pane, making it easy to switch to a particular external content type without first having to bring up the explorer.

Figure 1. Pinning object explorers to the navigation bar
 
Others
 
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 3) - Create an External Content Type - Add a Limit Filter
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 2) - Create an External Content Type - Define SpecificFinder Operation
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 1) - Associations, Stereotypes
- Sharepoint 2010 : Business Connectivity Services - Business Data Catalog in MOSS 2007
- Sharepoint 2013 : Creating List Views - Specify How Folders Will Be Used in a View
- Sharepoint 2013 : Creating List Views - Specify a Different Item Style for a View
- Sharepoint 2013 : Creating List Views - Specify Totals for a View
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Grouped
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Filtered
- PowerShell for SharePoint 2013 : Work Management Service (part 2) - Get the Identity of the Work Management Service Application Proxy,Get a Specific Work Management Service Application Proxy Instance
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us