<?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: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53850.aspx</link><pubDate>Mon, 19 Apr 2010 13:06:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53850</guid><dc:creator>newbie999</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53850</wfw:commentRss><description>&lt;p&gt;That did the trick!&amp;nbsp;&amp;nbsp; Thank you so much for all of&amp;nbsp;your help. &lt;/p&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53803.aspx</link><pubDate>Sat, 17 Apr 2010 11:43:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53803</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53803</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;First, move your &amp;quot;Add Testers&amp;quot; button into your repeating section that you have outlined in red. &lt;/p&gt;
&lt;p&gt;With this line: XPathNavigator group = root.SelectSingleNode(&amp;quot;/my:myFields/my:group3/my:group4/my:group9&amp;quot;, NamespaceManager); you are always selecting the first the group9 group. That is why your testers are being added to the first group.&lt;/p&gt;
&lt;p&gt;If you move your button, you can use:&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; workItem = e.Source;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;This will get you the correct &lt;strong&gt;group4 &lt;/strong&gt;for the red outlined section. From there, you can select group9 for your AppendChild operation, like this:&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; testers =&amp;nbsp; workItem.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:group9&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Running your code in debug will help you see what might be going on -- &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx"&gt;here&amp;#39;s&lt;/a&gt; a blog post on that, if you are unsure of how to do it.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53795.aspx</link><pubDate>Fri, 16 Apr 2010 20:16:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53795</guid><dc:creator>newbie999</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53795</wfw:commentRss><description>&lt;p&gt;Thanks for the response, I have attached the&amp;nbsp;schema as requested and also the main form.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;To clarify, here is the behaviour I am seeing:&lt;/p&gt;
&lt;p&gt;The user enters&amp;nbsp;a workItemId (say 1234) in the&amp;nbsp;workItemId&amp;nbsp;textbox&amp;nbsp;in the first &amp;quot;outer&amp;quot; repeating section.&amp;nbsp; The&amp;nbsp;user then selects a number of testers from the employeeList drop down (say 5 testers are chosen)&amp;nbsp;and clicks Add Testers.&amp;nbsp; This&amp;nbsp;causes&amp;nbsp;5 &amp;quot;inner&amp;quot; repeating sections (green rectangles) to be generated inside the &amp;quot;outer&amp;quot; repeating group (red rectangle).&amp;nbsp;&amp;nbsp;Also, the &amp;quot;Tester&amp;quot; textbox in each generated section contains a name the user selected.&amp;nbsp; This works fine for the very&amp;nbsp;first workItemId&amp;nbsp;entered.&amp;nbsp; That is, the correct number of &amp;quot;inner&amp;quot; repeating sections are generated (i.e. one for each name the user chose from the drop down list) and the respective &amp;quot;Tester&amp;quot; textbox contains the name of a tester.&lt;/p&gt;
&lt;p&gt;However, when the user clicks to add a subsequent &amp;quot;outer&amp;quot; repeating section (red rectangle) for another workItemId, (say 5678), and the user clicks Add Testers, all the names (but one)&amp;nbsp;are added to the first &amp;quot;outer&amp;quot; repeating section, which is associated with workItemId 1234.&lt;/p&gt;
&lt;p&gt;I would like the 5 testers&amp;#39; names&amp;nbsp;to show up&amp;nbsp;in the&amp;nbsp;&amp;quot;outer&amp;quot; section (red rectangle) for workItemId 5678, just as they did for workItemId 1234.&lt;/p&gt;
&lt;p&gt;I hope my description and screenshots have helped to better explain the problem.&amp;nbsp; Thank you for your&amp;nbsp;help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53793.aspx</link><pubDate>Fri, 16 Apr 2010 20:08:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53793</guid><dc:creator>newbie999</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53793</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53738.aspx</link><pubDate>Thu, 15 Apr 2010 18:46:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53738</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53738</wfw:commentRss><description>&lt;p&gt;Can you post a screen shot of your schema? I&amp;#39;m trying to understand what is repeating and what isn&amp;#39;t (by the way, it is a good idea to always rename your groups and fields so that they have meaningful names -- it makes everything so much easier!). &lt;/p&gt;
&lt;p&gt;When you select the node for the variable you are calling &amp;quot;group&amp;quot;, you are always selecting the first one, if group 9 is repeating. If you need to loop through a list of group 9&amp;#39;s, you need to use and XPathNodeIterator. Then you would use something like this, if group 10 was also repeating -- again without seeing your data structure, I&amp;#39;m making lots of guesses:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator group = root.Select(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:group3/my:group4/my:group9&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;foreach&lt;/font&gt; (XPathNavigator row &lt;font color="#0000ff"&gt;in&lt;/font&gt; group)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator innerGroup = group.Select(&lt;font color="#a31515"&gt;&amp;quot;my:group10&amp;quot;&lt;/font&gt;), NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;foreach&lt;/font&gt; (XPathNavigator innerRow &lt;font color="#0000ff"&gt;in&lt;/font&gt; innerGroup)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator field = innerGroup.SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;my:tester&amp;quot;&lt;/font&gt;);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.SetValue(&lt;font color="#a31515"&gt;&amp;quot;Happy Tester&amp;quot;&lt;/font&gt;);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:115%;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:10pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53497.aspx</link><pubDate>Thu, 08 Apr 2010 18:32:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53497</guid><dc:creator>newbie999</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53497</wfw:commentRss><description>&lt;p&gt;Thank you for your reply.&amp;nbsp; Here is my code, I am using InfoPath 2007:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; addTesters_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;GetTesterList(); //Goes through XML nodes and&amp;nbsp;adds names from&amp;nbsp;drop down to List&amp;lt;string&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; newNode = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; root = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; group = root.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group3/my:group4/my:group9&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager); &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field = root.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group3/my:group4/my:group9/my:group10&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&amp;nbsp;//Contains textboxes for tester and feedback&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; innerTesterIter = root.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group3/my:group4/my:group9/my:group10/my:tester&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&amp;nbsp; //Textbox for tester&amp;#39;s name&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; Testers.Count - 1; i++)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;newNode = field.Clone();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (newNode.MoveToAttribute(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;nil&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)) &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//It was recommended to this if there were schema errors. I don&amp;#39;t think this evalutates to&amp;nbsp;true&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;newNode.DeleteSelf();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;group.AppendChild(newNode); &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//*** Always adds nodes to first outer section&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; tester &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Testers)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (InnerTesterCurrentPosition == 0)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;innerTesterIter.MoveNext();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;else&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;while&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (innerTesterIter.CurrentPosition &amp;lt;= InnerTesterCurrentPosition)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;innerTesterIter.MoveNext();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;InnerTesterCurrentPosition = innerTesterIter.CurrentPosition;&lt;/p&gt;
&lt;p&gt;innerTesterIter.Current.SetValue(tester); &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Put tester&amp;#39;s name in &amp;quot;tester&amp;quot; textbox in &amp;quot;inner&amp;quot; section&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53445.aspx</link><pubDate>Wed, 07 Apr 2010 22:08:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53445</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53445</wfw:commentRss><description>&lt;p&gt;Hi -- you are doing this via code? Post your code sample, and that will help us help you better....&lt;/p&gt;</description></item><item><title>Populating fields in subsequent sections of a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/53296.aspx</link><pubDate>Thu, 01 Apr 2010 13:44:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53296</guid><dc:creator>newbie999</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53296</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;&lt;font color="#000000"&gt;I am creating a form as follows.&amp;nbsp; I have a &amp;quot;outer&amp;quot; repeating section in which the user enters a work item and then selects as many names as he/she wishes from a drop down list.&amp;nbsp; When the user clicks a button (also in this &amp;quot;outer&amp;quot; repeating section), Feedback textboxes are added for each name selected, as well as text boxes with the names selected from the drop down appear above the those provided for feedback.&amp;nbsp; I used the Clone method to create the new feedback textboxes and textboxes that display the user&amp;#39;s name that was selected. (The username textbox appears above the respective feedback textbox).&amp;nbsp; This did the trick, but there is a problem.&amp;nbsp; The user should be able to click &amp;quot;Insert item&amp;quot; on the outer repeating section to add another work item wherein he/she may again select as many names as they wish, click a button, and have feedback and user name text boxes appear for each name selected from the drop down box associated with the *current* work item, (i.e, &amp;quot;outer&amp;quot; repeating section).&amp;nbsp; I clicked Insert Item on the &amp;quot;outer&amp;quot; repeating section and selected 2 names from the second drop down, but when I try to clone a node, it is added at the end of the *previous* repeating section.&amp;nbsp; I don&amp;#39;t know how to navigate into (for lack of a better term) subsequent repeating sections.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;I saw the following links, but they were for tables.&amp;nbsp; Also, I am rather new to&amp;nbsp;Infopath&amp;nbsp;and was not sure how to proceed.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.infopathdev.com/forums/p/9316/33499.aspx#33499"&gt;http://www.infopathdev.com/forums/p/9316/33499.aspx#33499&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/11859/41670.aspx"&gt;http://www.infopathdev.com/forums/p/11859/41670.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;&lt;a title="Link #1"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>