Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

BCS External Item Picker With Multiple Filters

$
0
0

I have defined an ECT to return Basic customer information from a SQL view.  I want to use this in an external data column in a standard SP List.  We want to be able to retrieve a customer using either their Tax ID or a wildcard search on Last Name and First Name.  So I have created 3 filters in the ECT,  A Comparison filter on the Tax ID field; a Wildcard filter on the Last Name; a Wildcard filter on First name.

The problem I am having is getting the External Item Picker to set multiple field criteria.  It works fine for one filter at a time - for instance - Tax ID will get me a single customer; and last name will get me a list of wildcard matches.

But I cannot figure out how to combine the 2 wildcard filters.  Let's say I want all of the Millers whose last name begins with J.  I select Last name filter from the picker filter drop down and enter Miller.  When I select the First name filter and enter J, the picker does not "keep" the Last name criteria.  It only submits "%J%" to the SQL query and it sets the Last name to null value. I can see this in SQL Profiler. How do I get it to send both criteria to the query?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>