<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx</link><description>When list box entries are looked up in either the form&amp;#39;s data source or a data connection, you might end up with the user being presented duplicate options. You can correct this, and display only unique options in a list, by using a filter and the</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#100439</link><pubDate>Fri, 05 Dec 2014 17:36:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100439</guid><dc:creator>Crazymaca69</dc:creator><description>&lt;p&gt;Hi can anyone tell me how to do this when using an xml source? &lt;/p&gt;
&lt;p&gt;Im having to use an xml source to be allow dynamic pictures from a picture library on Sharepoint. I had it working using a normal Sharepoint list but can't figure out what the string should be for xml?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=100439" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#72864</link><pubDate>Tue, 13 Dec 2011 15:28:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72864</guid><dc:creator>Elmholt</dc:creator><description>&lt;p&gt;Hi. &lt;/p&gt;
&lt;p&gt;I need a filter like this on my dropdown list, but i am not sure how to define the expression&lt;/p&gt;
&lt;p&gt;not(. = ../preceding::my:group2/my:field2)&lt;/p&gt;
&lt;p&gt;What does &amp;quot;my:group2&amp;quot; and &amp;quot;my:field2&amp;quot; refer to?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=72864" width="1" height="1"&gt;</description></item><item><title>Show unique rows in a secondary repeating data source table - no code!</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#71131</link><pubDate>Sun, 16 Oct 2011 21:15:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71131</guid><dc:creator>Mel Balsamo</dc:creator><description>&lt;p&gt;When designing an InfoPath form that integrates with a secondary data source such as a SharePoint list&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=71131" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#41665</link><pubDate>Wed, 13 May 2009 16:17:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41665</guid><dc:creator>rhallock</dc:creator><description>&lt;p&gt;If you haven't figured this out, I'd start by removing the additional condition you have to see if it's the problem.&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=41665" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#41303</link><pubDate>Tue, 05 May 2009 20:59:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41303</guid><dc:creator>granack</dc:creator><description>&lt;p&gt;I'm having a problem with the filter including all of the values. &amp;nbsp;I'm using the following from a secondary data source:&lt;/p&gt;
&lt;p&gt;not(. = ../preceding::dfs:_18-740-886-402_pg14/@kV)&lt;/p&gt;
&lt;p&gt;I also have an additional condition that the name from the Main data source match the name from the secondary (sharepoint list) &amp;nbsp;(i.e. BreakerSelection is equal to Type1). &amp;nbsp;This is in order to determine which kV data to return to the list&lt;/p&gt;
&lt;p&gt;The data I am testing for this filter is 4.76, 8.25, 8.25, 8.25, 15, 15, 15, 15, 15, 15, 15&lt;/p&gt;
&lt;p&gt;The filter only returns 8.25 and 15 for the dropdown, why is it not including 4.76 since it is itself a unique value?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=41303" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#37484</link><pubDate>Wed, 21 Jan 2009 22:44:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37484</guid><dc:creator>rhallock</dc:creator><description>&lt;p&gt;For a Secondary Data Source, the steps are the same but your XPath will look a bit different.&lt;/p&gt;
&lt;p&gt;For example, my secondary data source looks like the following:&lt;/p&gt;
&lt;p&gt;/dfs:myFields/dfs:dataFields/dfs:Program_Fee_Reports/@Partner&lt;/p&gt;
&lt;p&gt;For the filter expression, my XPath looks like this:&lt;/p&gt;
&lt;p&gt;not(. = ../preceding::dfs:Program_Fee_Reports/@Partner)&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=37484" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#35657</link><pubDate>Thu, 11 Dec 2008 11:12:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35657</guid><dc:creator>dave_2k8</dc:creator><description>&lt;p&gt;rab2k - Did you ever find a solution to you issue with pulling unique values from a SharePoint list.&lt;/p&gt;
&lt;p&gt;I am looking to do the same - but cannot find a way to do it.&lt;/p&gt;
&lt;p&gt;Thanks..Dave&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=35657" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#30189</link><pubDate>Tue, 08 Jul 2008 05:26:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30189</guid><dc:creator>rab2k</dc:creator><description>&lt;p&gt;Greg - Could you provide the syntax for pulling unique values from a SharePoint list? &amp;nbsp;I am using a Sharepoint List with duplicate values to populate the InfoPath Sharepoint dropdown, but would like it to only display unique values. &amp;nbsp;&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=30189" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#27927</link><pubDate>Mon, 14 Apr 2008 17:08:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27927</guid><dc:creator>Lalato</dc:creator><description>&lt;p&gt;Never mind... I figured out my problem. &amp;nbsp;Thanks for the great info. &lt;/p&gt;
&lt;p&gt;--sam&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=27927" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#27926</link><pubDate>Mon, 14 Apr 2008 17:05:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27926</guid><dc:creator>Lalato</dc:creator><description>&lt;p&gt;Will this same logic work for a secondary data source? &amp;nbsp;I would like to do this with an XML file, but I keep getting duplicates.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;--sam&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=27926" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#25669</link><pubDate>Tue, 15 Jan 2008 17:53:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25669</guid><dc:creator>Greg Collins</dc:creator><description>&lt;p&gt;Thank you zaphi, I'm glad to hear you got it working!&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=25669" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#24837</link><pubDate>Mon, 03 Dec 2007 08:46:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24837</guid><dc:creator>zaphi</dc:creator><description>&lt;p&gt;Hi Greg&lt;/p&gt;
&lt;p&gt;Sorry, I had a problem with the german syntax. I could correct it, and it works correctly.&lt;/p&gt;
&lt;p&gt;Your how-to is very good!&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Philippe&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=24837" width="1" height="1"&gt;</description></item><item><title>re: Display Only Unique Options in a List</title><link>https://www.infopathdev.com:443/blogs/greg/archive/2005/06/08/Display-Only-Unique-Options-in-a-List.aspx#24821</link><pubDate>Fri, 30 Nov 2007 15:45:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24821</guid><dc:creator>zaphi</dc:creator><description>&lt;p&gt;Hi Greg&lt;/p&gt;
&lt;p&gt;Sorry, but I have done exactly this sampler like explained, but I get duplicates in the list. &lt;/p&gt;
&lt;p&gt;I have infoPath 2003 SP2, and work in german.&lt;/p&gt;
&lt;p&gt;Can you explain it?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Philippe&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=24821" width="1" height="1"&gt;</description></item></channel></rss>