<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Cascade + Uniqueness filter not working</title><link>https://www.infopathdev.com:443/forums/thread/50460.aspx</link><pubDate>Fri, 08 Jan 2010 18:35:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50460</guid><dc:creator>BPChris1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50460</wfw:commentRss><description>&lt;p&gt;Having an issue with cascading drop down text boxes.&amp;nbsp; I have&amp;nbsp;created the form, and set up the text boxes.&amp;nbsp; I can get the boxes to cascade correctly.&amp;nbsp; And I can get the uniqueness filters to work.&amp;nbsp; However, I&amp;nbsp;cannot get them to do both at the same time.&amp;nbsp; I have tried many variations but for discussion sake lets look at the second box of the cascade, known as &amp;quot;Size&amp;quot;.&amp;nbsp;&amp;nbsp;&amp;nbsp;(Pipe_Class is the 1st box in the cascade.)&amp;nbsp; Both are from the same secondary data source which happens to be a sharepoint list.&lt;/p&gt;
&lt;p&gt;If when adding the filter&amp;nbsp;I select &lt;strong&gt;Pipe_Class&lt;/strong&gt; in the first dropdown of the filter dialog, &lt;strong&gt;is equal to&lt;/strong&gt; in the second&amp;nbsp;spot, and type the following expression in the 3rd, the cascade works perfect but with duplicate values in the dropdown.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;current () /Pipe_Class&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I remove that filter and create one selecting &amp;quot;The expression&amp;quot; in the 1st box and enter &lt;strong&gt;not(. = ../preceding-sibling::dfs:Pipe_Classes/@Pipe_Class)&lt;/strong&gt; in the second, then I get rid of the duplicates, but the cascade does not work.&amp;nbsp; (Pipe_Classes is the repeating group which the rest of my fields are in.)&lt;/p&gt;
&lt;p&gt;I have tried anding them in the create filter dialog box, then I have no selections available in the &amp;quot;size&amp;quot; dropdown.&amp;nbsp; I have also tried combining them in one expression much like an example I had gotten from this forum as below.&amp;nbsp; In this case, neither the cascade nor the uniqueness filter works.&amp;nbsp; Can anyone see anything obviously wrong with my expression?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;not(. = ../preceding-sibling::dfs:Pipe_Classes[Pipe_Class = current()/Pipe_Class]/@Size)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I think I have attached a zipped screen shot that might help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>