<?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: Looping through repeating section</title><link>https://www.infopathdev.com:443/forums/thread/49794.aspx</link><pubDate>Tue, 08 Dec 2009 15:28:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49794</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49794</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy that worked!!!&lt;/p&gt;</description></item><item><title>Re: Looping through repeating section</title><link>https://www.infopathdev.com:443/forums/thread/49793.aspx</link><pubDate>Tue, 08 Dec 2009 15:18:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49793</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49793</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This is happening because you&amp;#39;re using absolute XPath.&amp;nbsp; Try using&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;writeval = CIField.selectSingleNode(&amp;quot;@GrossIncome&amp;quot;).text &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Looping through repeating section</title><link>https://www.infopathdev.com:443/forums/thread/49791.aspx</link><pubDate>Tue, 08 Dec 2009 15:09:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49791</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49791</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have this small prodcedure that loops through a repaeting&amp;nbsp;section.&amp;nbsp; However, I seem to be missing something something obvious that I cannot see.&amp;nbsp; It never advances to the next node in the repeating section, so if I attempt to use the data from the section, I always get&amp;nbsp;the data from the first row in the repeating section.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; CISection &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DOMNodeList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; CIField &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DOMNode&lt;/p&gt;CISection = thisXDocument.DOM.selectNodes(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_SelfEmploymentIncome&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;CIField = CISection.nextNode()&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;For&lt;/font&gt;&lt;font size="2"&gt; cnt &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Integer&lt;/font&gt;&lt;font size="2"&gt; = 0 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;To&lt;/font&gt;&lt;font size="2"&gt; CISection.length - 1&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;writeval = CIField.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_SelfEmploymentIncome/@GrossIncome&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;).text&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;MsgBox(writeval)&lt;/p&gt;
&lt;p&gt;CIField = CISection.nextNode()&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Next&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>