<?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: Confusion with current() when Repeating section within repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70481.aspx</link><pubDate>Wed, 21 Sep 2011 13:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70481</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=70481</wfw:commentRss><description>&lt;p&gt;Unfortunately, I don&amp;#39;t think there&amp;#39;s an easy way to do this.&amp;nbsp; current() refers to the current row of the &lt;em&gt;inner&lt;/em&gt; repeating structure and I don&amp;#39;t think there&amp;#39;s a way to refer to the outer repeating row from your formula.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This came up recently in another thread, and here are the possible solutions that I was able to come up with:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/20221/70157.aspx#70157"&gt;http://www.infopathdev.com/forums/p/20221/70157.aspx#70157&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Confusion with current() when Repeating section within repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70480.aspx</link><pubDate>Wed, 21 Sep 2011 12:52:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70480</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=70480</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using infopath 2007.&lt;/p&gt;
&lt;p&gt;I have two Data connections &amp;nbsp;&lt;/p&gt;
&lt;p&gt;A&lt;br /&gt;dataFields&lt;br /&gt;d:RequestItems &amp;lt;--- Repeating&lt;br /&gt;RequestID&lt;br /&gt;RequestItem&lt;/p&gt;
&lt;p&gt;B&lt;br /&gt;dataFields&lt;br /&gt;row &amp;lt;--- Repeating&lt;br /&gt;RequestID&lt;br /&gt;ActivityDate&lt;br /&gt;Comments&lt;/p&gt;
&lt;p&gt;For each&amp;nbsp;form I may have many records in A which I want displayed.&lt;/p&gt;
&lt;p&gt;For each A I may have many records in B&lt;/p&gt;
&lt;p&gt;I want to have a repeating table of A and add an additonal column to show&amp;nbsp;show&amp;nbsp;a repeating section displaying&amp;nbsp;events from B, where the RequestIDs match..&lt;/p&gt;
&lt;p&gt;I have the structure set up as desired - and I am attempting to put conditional formatting on the repeating section(B), so that the items only display when the requestids match.&amp;nbsp; I am obviously having a problem with understanding how current() should be used in this case.&lt;/p&gt;
&lt;p&gt;I have put an expression box in the final column - outside the repeating section and have the formula current()/@RequestID in that box.&amp;nbsp; This displays the correct requestID.&lt;/p&gt;
&lt;p&gt;On the repeating section based on B I have tried &lt;/p&gt;
&lt;p&gt;RequestID != xdXDocument:get-DOM()/dfs:dataFields/d:RequestItems/@RequestID&lt;/p&gt;
&lt;p&gt;RequestID != current()/@RequestID&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;&lt;a name="OLE_LINK20"&gt;&lt;/a&gt;RequestID !=&lt;a href="mailto:RequestItems/@RequestID" name="OLE_LINK19"&gt;&lt;span&gt;&lt;font size="3" face="Calibri"&gt;current()/d:RequestItems/@RequestID&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;None of them work...&amp;nbsp; I am guessing that the current() is looking at the B repeating&amp;nbsp;section not the A repeating table Could someone please point me in the right direction.&amp;nbsp; &lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;Thank you.&lt;/p&gt;
&lt;p style="MARGIN:0cm 0cm 10pt;" class="MsoNormal"&gt;Catharine&lt;/p&gt;</description></item></channel></rss>