<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Creating a Unique Filter</title><link>https://www.infopathdev.com:443/forums/thread/24644.aspx</link><pubDate>Thu, 22 Nov 2007 12:35:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24644</guid><dc:creator>Joshie777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=24644</wfw:commentRss><description>&lt;p&gt;Thanks... Actually, I was looking at another solution close to this in the forum with someone who had a similar problem.&amp;nbsp; The response was to make sure that the fields in the main datasource and the secondary data source have the same format, eg. capital letters / common letters.&amp;nbsp; My problem was that one of my fields had a common letter where a capital was supposed to be.&amp;nbsp; When I made the change, all went well.&amp;nbsp; All of my three cascading drop downs work perfect.&amp;nbsp; Thanks for all your assistance.&lt;/p&gt;</description></item><item><title>Re: Creating a Unique Filter</title><link>https://www.infopathdev.com:443/forums/thread/24621.aspx</link><pubDate>Wed, 21 Nov 2007 16:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24621</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=24621</wfw:commentRss><description>&lt;p&gt;Hi joshie777,&lt;/p&gt;
&lt;p&gt;These filters are very difficult to debug.&amp;nbsp; I would really have to see your schema to give better advice, but I would take the first clause out (before the and).&amp;nbsp; It seems unecessary and will cause the expression to evaluate to true more often than you like.&lt;/p&gt;</description></item><item><title>Creating a Unique Filter</title><link>https://www.infopathdev.com:443/forums/thread/24568.aspx</link><pubDate>Tue, 20 Nov 2007 13:16:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24568</guid><dc:creator>Joshie777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=24568</wfw:commentRss><description>&lt;p&gt;I am trying to create cascading dropdowm boxes.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I saw a nice tute on the forum with this but here is the problem I am faced with:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The sample code on the site is:&lt;br /&gt;SAMPLE on Site:&lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Vehicles&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1963&amp;quot; make=&amp;quot;Chevrolet&amp;quot; model=&amp;quot;Corvette&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1963&amp;quot; make=&amp;quot;Chevrolet&amp;quot; model=&amp;quot;Nova&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1963&amp;quot; make=&amp;quot;Porsche&amp;quot; model=&amp;quot;356&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1963&amp;quot; make=&amp;quot;Porsche&amp;quot; model=&amp;quot;Carrera&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1973&amp;quot; make=&amp;quot;Ford&amp;quot; model=&amp;quot;Bronco&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Vehicle year=&amp;quot;1973&amp;quot; make=&amp;quot;Ford&amp;quot; model=&amp;quot;Mustang&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SAMPLE Changes I made to data to reflect my data:&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;arp&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;GM-Refining&amp;quot; costcentre=&amp;quot;40000&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;GM-Refining&amp;quot; costcentre=&amp;quot;40100&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;GM-Refining&amp;quot; costcentre=&amp;quot;47200&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;GM-Refining&amp;quot; costcentre=&amp;quot;49220&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;Heavy Oils/Conversion&amp;quot; costcentre=&amp;quot;42000&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Division name=&amp;quot;Refining&amp;quot; department=&amp;quot;Heavy Oils/Conversion&amp;quot; costcentre=&amp;quot;42010&amp;quot;/&amp;gt;\ &lt;br /&gt;&amp;lt;Division name=&amp;quot;Marketing and Trading&amp;quot; department=&amp;quot;Crude Purchasing&amp;quot; costcentre=&amp;quot;53200&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Division name=&amp;quot;Marketing and Trading&amp;quot; department=&amp;quot;GM-Marketing and Trading&amp;quot; costcentre=&amp;quot;53000&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;lt;Division name=&amp;quot;Marketing and Trading&amp;quot; department=&amp;quot;GM-Marketing and Trading&amp;quot; costcentre=&amp;quot;53400&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Division name=&amp;quot;Marketing and Trading&amp;quot; department=&amp;quot;Port Operations&amp;quot; costcentre=&amp;quot;41010&amp;quot;/&amp;gt; &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Now I created the three dropdown fields (name, department and costcentre) and followed the tutorial to make a cascading dropdown.&amp;nbsp; The name field filtered great... and the cost centre as well, but somehow the Expression they have for the middle field, which in my case is the department field,&amp;nbsp;is not working, it still shows GM-Refining (4times) and Heavy Oils (2 times etc.)&amp;nbsp; and its a lot of data, I just sent you a sample, but the truth is, all of the departments are displayed in the dropdown, all the way down, and not filtered for unique records, whereas in the name field Refining is filtered and Marketing &amp;amp; Trading. is also filtered as showing up only once.&amp;nbsp; This field works great..&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This is the Expression from the tutorial to filter the department field, but it does not seem to work...&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;a&gt;/arp/Division/@department[(../@name&lt;/a&gt; = xdXDocument:get-DOM()/dfs:myFields/my:Division/my:Name) and (not(. = ../preceding-sibling::Division[@Name = current()/my:Division/my:name]/@dept))]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any assistance to show me how to filter the department field will be greatly appreciated.&amp;nbsp; Thanks..&lt;/p&gt;</description></item></channel></rss>