<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering issue repeating table in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53446.aspx</link><pubDate>Wed, 07 Apr 2010 22:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53446</guid><dc:creator>bayeo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53446</wfw:commentRss><description>&lt;p&gt;Thank you Greg - works like a charm!&amp;nbsp; And thanks also for the explanation - that WILL help me in the future...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Filtering issue repeating table in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53430.aspx</link><pubDate>Wed, 07 Apr 2010 15:22:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53430</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53430</wfw:commentRss><description>&lt;p&gt;You are correct, you cannot do this without using current().&lt;/p&gt;
&lt;p&gt;The problem with your approach is that it is starting at the root node of your main DOM and looking for &lt;u&gt;ANY&lt;/u&gt; my:CostOrg that is part of &lt;u&gt;ANY&lt;/u&gt; my:group11 table. This is why you are experiencing what you are. When you start from the root node, there&amp;#39;s not much you can do to prevent that unless you can filter for a specific repeating section (my:group3[2]). To do this easier, you use current().&lt;/p&gt;
&lt;p&gt;The biggest trouble people (including myself) have with current() is understanding just what node that represents so that you can build an appropriate XPath from it. The data source task pane often gives you a clue by &lt;strong&gt;BOLDING&lt;/strong&gt; the specific node that is the current node--there are some rare exceptions to this, but in general this is the case. So in your case my:group11 is bold, and is the current node.&lt;/p&gt;
&lt;p&gt;Thus your filter would be this:&lt;/p&gt;
&lt;p&gt;not(@CostOrgCode = current()/../my:group11/my:CostOrg)&lt;/p&gt;
&lt;p&gt;Note that I go up one level from my:group11 to the table container, then back down into the table and into the my:CostOrg field. This is important because current() doesn&amp;#39;t actually represent the TABLE itself, but the specific ROW of the table that you are currently on. Thus, to compare against all of the rows in the table, you have to get outside to the table container, then back so you can compare against each row.&lt;/p&gt;
&lt;p&gt;I hope that was enough to make sense to you can unstick yourself in the future too.&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;</description></item><item><title>Filtering issue repeating table in repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53356.aspx</link><pubDate>Mon, 05 Apr 2010 13:30:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53356</guid><dc:creator>bayeo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53356.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53356</wfw:commentRss><description>&lt;p&gt;Hi, I have an IP2007 form that has a repeating table as part of a repeating section.&amp;nbsp; One field of the table is a drop down list using a secondary data source (sharepoint list).&amp;nbsp; I am filtering the list so when a &amp;#39;CostOrg&amp;#39; is selected in the table it will not be available when inserting a new row in the current repeating table.&amp;nbsp; This works fine - but when I insert a new section the new instance of the repeating table filters out all entries from previous section as well - I want the new section to have all entries available again.&amp;nbsp; I suspect I need current() function somewhere but have tried everything with no luck...&lt;/p&gt;
&lt;p&gt;Here is what I am using for filter:&lt;br /&gt;not(@CostOrgCode = xdXDocument:get-DOM()/my:myFields/my:group2/my:group3/my:group4/my:group10/my:group11/my:CostOrg)&lt;/p&gt;
&lt;p&gt;Group3 is the repeating section&lt;/p&gt;
&lt;p&gt;Group11 is the repeating table&lt;/p&gt;
&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;</description></item></channel></rss>