<?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>Re: loop/specific cell in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/19631.aspx</link><pubDate>Mon, 07 May 2007 14:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19631</guid><dc:creator>rubinoae</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19631.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19631</wfw:commentRss><description>&lt;p&gt;ah, man. there is always&amp;nbsp;an easy answer.&amp;nbsp; I shoould have asked the question HOURS ago.&amp;nbsp; thanks guys, the solution works great.&amp;nbsp; Now in order to evaluate the specific field in the specific row i changed the code block within the while loop&amp;nbsp;to this:&lt;/p&gt;&lt;p&gt;XDocument.UI.Alert(node.selectSingleNode(&amp;quot;my:pickupReady&amp;quot;).text); &lt;/p&gt;&lt;p&gt;&amp;nbsp;and it all works great.&lt;/p&gt;</description></item><item><title>Re: loop/specific cell in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/19625.aspx</link><pubDate>Mon, 07 May 2007 13:10:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19625</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19625</wfw:commentRss><description>Nukkumati is correct.  There is no position 0 in XML. Weird, huh?
&lt;br /&gt;&lt;br /&gt;
To avoid these problems, use the preffered method of looping:
&lt;br /&gt;&lt;br /&gt;
var list = XDocument.DOM.selectNodes( "_xpath_to_repeating_structure_" );&lt;br /&gt;
var node;&lt;br /&gt;
while( ( node = list.nextNode()) != null )&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;XDocument.UI.Alert( node.text );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
If you're using C#, you can use the foreach, and it's even a little cleaner.</description></item><item><title>Re: loop/specific cell in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/19620.aspx</link><pubDate>Mon, 07 May 2007 12:26:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19620</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19620.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19620</wfw:commentRss><description>&lt;p&gt;I am now not 100% but is there a position 0 for repeating tables ?&amp;nbsp;So my best guess would be to try for(var i = 1; i &amp;lt;= XDocument.DOM.selectNodes(&amp;quot;my:myFields/my:group1/my:group2&amp;quot;).length;i++) and you cannot use [i] you have to use the second syntax you posted [&amp;quot; + i + &amp;quot;].&lt;/p&gt;&lt;p&gt;Does it help ?&lt;/p&gt;</description></item><item><title>loop/specific cell in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/19609.aspx</link><pubDate>Sun, 06 May 2007 21:29:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19609</guid><dc:creator>rubinoae</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19609</wfw:commentRss><description>&lt;p&gt;for(var i = 0; i &amp;lt; XDocument.DOM.selectNodes(&amp;quot;my:myFields/my:group1/my:group2&amp;quot;).length; i++) &lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;XDocument.UI.Alert(XDocument.DOM.selectSingleNode(&amp;quot;my:myFields/my:group1/my:group2[&lt;strong&gt;i&lt;/strong&gt;]/my:pickupReady&amp;quot;).text); &lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;I can&amp;#39;t seem to get this to work.&amp;nbsp; group2 is a repeating table with a cell containing a checkbox, pickupReady.&amp;nbsp; I want to&amp;nbsp;cycle through the rows and evaluate whether or not the checkbox is clear. the following works:&lt;/p&gt;&lt;p&gt;XDocument.UI.Alert(XDocument.DOM.selectSingleNode(&amp;quot;my:myFields/my:group1/my:group2[&lt;strong&gt;1&lt;/strong&gt;]/my:pickupReady&amp;quot;).text); &lt;/p&gt;&lt;p&gt;I can enter any number as long as there is a corresponding row but i don;t want to manually enter the row number, i want it done programmatically using the variable &amp;quot;i&amp;quot;.&lt;/p&gt;&lt;p&gt;When&amp;nbsp;I use the variable &amp;quot;i&amp;quot; as I did at the very top infopath errors out and says an object is required.&amp;nbsp; Why can&amp;#39;t I use the variable?&amp;nbsp; I have also tried the following:&lt;/p&gt;&lt;p&gt;XDocument.UI.Alert(XDocument.DOM.selectSingleNode(&amp;quot;my:myFields/my:group1/my:group2[&lt;strong&gt;&amp;quot;+ i +&amp;quot;&lt;/strong&gt;]/my:pickupReady&amp;quot;).text); &lt;/p&gt;&lt;p&gt;again it isn;t working... anyone have a suggestion?&lt;/p&gt;</description></item></channel></rss>