<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Resolved - double in dropdown</title><link>https://www.infopathdev.com:443/forums/thread/6461.aspx</link><pubDate>Tue, 04 Jan 2005 08:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6461</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6461</wfw:commentRss><description>Hi &lt;br /&gt;&lt;br /&gt;Thanks for your correction&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Resolved - double in dropdown</title><link>https://www.infopathdev.com:443/forums/thread/6460.aspx</link><pubDate>Mon, 03 Jan 2005 22:47:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6460</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6460</wfw:commentRss><description>Glad you got it fixed!&lt;br /&gt;&lt;br /&gt;Just a side note... I've since learned that you do not need the first .= in the XPath... You can shorten the XPath like this:&lt;br /&gt;&lt;br /&gt;Entry: /Cities/City/@state[not(. = ../preceding::City/@state)]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Resolved - double in dropdown</title><link>https://www.infopathdev.com:443/forums/thread/6459.aspx</link><pubDate>Thu, 30 Dec 2004 13:12:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6459</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6459.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6459</wfw:commentRss><description>Ok I have found my mistake. &lt;br /&gt;&lt;br /&gt;entry had to like this:&lt;br /&gt;Entry: /Cities/City/@state[. = not(. = ../preceding::City/@state)]&lt;br /&gt;&lt;br /&gt;My mistake a little bit supid but...&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think it</description></item><item><title>Resolved - double in dropdown</title><link>https://www.infopathdev.com:443/forums/thread/4528.aspx</link><pubDate>Wed, 29 Dec 2004 16:04:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4528</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4528</wfw:commentRss><description>Hi this message is for one of the best: Greg Collins&lt;br /&gt;&lt;br /&gt;You have posted this solution for don't have double in dropdown:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;i&gt;Let's say you have a drop-down list box that is populated from a &lt;br /&gt;repeating table in your main data source. And it is specifically using &lt;br /&gt;my:field1 as the value in the repeating table.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You would put a filter on the drop-down list box with the following &lt;br /&gt;expression:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   . = not(. = preceding::my:field1)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I know that looks funny, but basically what this filter does is to say &lt;br /&gt;that if the drop-down list already has an option with the value trying &lt;br /&gt;to be added (while the list is being built), then don't add it. This &lt;br /&gt;makes it so that you have only unique values in your drop-down list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;Please visit:&lt;a target="_blank" href=http://www.InfoPathDev.com&gt;http://www.InfoPathDev.com&lt;/a&gt;&lt;/i&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I try to put your example on my example put that don't work.&lt;br /&gt;&lt;br /&gt;I do that:&lt;br /&gt;I have a listbox (State) I have bind to an xml:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&amp;lt;Cities&amp;gt;&lt;br /&gt;  &amp;lt;City state="Washington"&amp;gt;Redmond&amp;lt;/City&amp;gt;&lt;br /&gt;  &amp;lt;City state="Washington"&amp;gt;Seattle&amp;lt;/City&amp;gt;&lt;br /&gt;  &amp;lt;City state="California"&amp;gt;Los Angeles&amp;lt;/City&amp;gt;&lt;br /&gt;&amp;lt;City state="La Sagne"&amp;gt;La Chaux-de-Fonds&amp;lt;/City&amp;gt;&lt;br /&gt;  &amp;lt;City state="Florida"&amp;gt;Orlando&amp;lt;/City&amp;gt;&lt;br /&gt;&amp;lt;/Cities&amp;gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;my content of parameter to populate is: &lt;br /&gt;&lt;br /&gt;Connexion: cities&lt;br /&gt;&lt;br /&gt;Entry: /Cities/City/@state[. = not(. = preceding::my:state)]&lt;br /&gt;&lt;br /&gt;value: .&lt;br /&gt;Name: .&lt;br /&gt;&lt;br /&gt;But when I start my form I have always two times washington on my dropdown.&lt;br /&gt;&lt;br /&gt;I have make a mistake? What do you think?&lt;br /&gt;&lt;br /&gt;Thanks for your answer&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think it</description></item></channel></rss>