<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: xpath to search Infopath repeating table for the next record with a certain value in a variable and return the corresponding record number</title><link>https://www.infopathdev.com:443/forums/thread/101716.aspx</link><pubDate>Sat, 14 Mar 2015 09:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101716</guid><dc:creator>AndreasEG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=101716</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thanks - great - it works perfectly.&lt;/p&gt;</description></item><item><title>Re: xpath to search Infopath repeating table for the next record with a certain value in a variable and return the corresponding record number</title><link>https://www.infopathdev.com:443/forums/thread/101214.aspx</link><pubDate>Fri, 13 Feb 2015 20:07:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101214</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101214.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=101214</wfw:commentRss><description>&lt;p&gt;I think this would be the right formula:&lt;/p&gt;
&lt;p&gt;../following-sibling::my:group2[my:Track = &amp;quot;true&amp;quot;]/my:CurrentRecord&lt;/p&gt;</description></item><item><title>xpath to search Infopath repeating table for the next record with a certain value in a variable and return the corresponding record number</title><link>https://www.infopathdev.com:443/forums/thread/101062.aspx</link><pubDate>Sun, 08 Feb 2015 11:18:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101062</guid><dc:creator>AndreasEG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=101062</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a repeating table with 3 variables: &lt;/p&gt;
&lt;p&gt;&amp;quot;CurrentRecord&amp;quot;: automatically filled with a sequential record number 1,2,3...&lt;/p&gt;
&lt;p&gt;&amp;quot;Track&amp;quot;: boolean: filled by the user as yes/no&lt;/p&gt;
&lt;p&gt;&amp;quot;NextTrackedStep&amp;quot;: number which should be calculated as the &amp;quot;CurrentRecord&amp;quot; of the next record where &amp;quot;Tracked&amp;quot; is true.&lt;/p&gt;
&lt;p&gt;The table looks like this:&lt;/p&gt;
&lt;p&gt;Current Record; Track; Next Tracked Step&lt;/p&gt;
&lt;p&gt;1;true;2&lt;/p&gt;
&lt;p&gt;2;true;5&lt;/p&gt;
&lt;p&gt;3;false;5&lt;/p&gt;
&lt;p&gt;4;false;5&lt;/p&gt;
&lt;p&gt;5;true;6&lt;/p&gt;
&lt;p&gt;6;true;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I tried this formula for the default value of &amp;quot;NextTrackedStep&amp;quot; but it does not work:&amp;nbsp;&amp;nbsp; ../following-sibling::my:group2[true() = (../following-sibling::my:group2/my:Track)]/my:CurrentRecord&lt;/p&gt;
&lt;p&gt;Event&amp;nbsp;though this is a simple search problem I could not find an article that really fits.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;I attach the XSN and XML files.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards&lt;/p&gt;
&lt;p&gt;Andreas&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>