<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63429.aspx</link><pubDate>Fri, 21 Jan 2011 19:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63429</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63429</wfw:commentRss><description>&lt;p&gt;Hey! I figured out my problem! I had the fields in the infopath xml schema in the wrong location.&amp;nbsp;I moved the GLAccountsGroup up from:&lt;/p&gt;
&lt;p&gt;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;/my:ExpenseReport/my:GLAccountsGroup&lt;/p&gt;
&lt;p&gt;Once I moved them out of the repeating table that is the ExpenseDetails it started to work.&amp;nbsp; Basically I think I was resetting the GLAccountsGroup with each new row that was added.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you Jimmy for your help! You got me to thinking about the flow of events and the flow of code and then the light bulb went off!&lt;/p&gt;
&lt;p&gt;Thanks Again!&lt;/p&gt;
&lt;p&gt;Jennifer&lt;/p&gt;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63426.aspx</link><pubDate>Fri, 21 Jan 2011 17:51:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63426</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63426</wfw:commentRss><description>I have two screenshots that I wanted to upload to make sure we are talking about the same thing.&amp;nbsp; Can you post an image? I&amp;nbsp;can&amp;#39;t link to an image because I don&amp;#39;t have a web location place to put it...I need to be able to upload&amp;nbsp;it to the forum.&amp;nbsp;&amp;nbsp; I want to make sure that we are both talking about the same issue..In my repeating table I have several columns.&amp;nbsp; One of the columns&amp;nbsp;contains the&amp;nbsp;dropdown menu.&amp;nbsp; This dropdown menu is populated by the code in this forum.&amp;nbsp; The dropdown menu has data in the first row of the repeating table but any new rows that a user creates in the repeating table, the dropdown menu is empty.&amp;nbsp; Only the first dropdown menu in the first row is populated.&amp;nbsp; How do I get the other&amp;nbsp;dropdown menus in the repeating table to populate with data besides the first row?Sorry to restate what probably already makes sense to you.&amp;nbsp; Some of this InfoPath coding is completely new to me and I&amp;#39;m stumbling through.Thanks again for all the help...&amp;nbsp;&amp;nbsp;Jennifer&amp;nbsp;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63423.aspx</link><pubDate>Fri, 21 Jan 2011 16:59:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63423</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63423</wfw:commentRss><description>&lt;p&gt;Hello! Thank you for the code sample.&amp;nbsp; Unfortunately, it is still not working for me. The dropdown in my repeating table populates for the first row but still does not populate for any new rows that are created in the table.&amp;nbsp;Does this line still need to be clone()? &lt;/p&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; xpnTemplateGL = xpnDataGroupGL.Clone();&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;See all&amp;nbsp;code below...&lt;/p&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; xpnRootNodeGL = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:ExpenseReport&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&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; xpnDataGroupGL = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:ExpenseDetails/my:GLAccountsGroup&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&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; xpnTemplateGL = xpnDataGroupGL.Clone();&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;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DataRow&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dRow &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; DS3.Tables[0].Rows)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;xpnDataGroupGL.InsertAfter(xpnDataGroupGL);&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; xpnNewDataGL = xpnRootNodeGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:ExpenseDetails/my:GLAccountsGroup[last()]&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;xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:GLAccountRepeatingID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/p&gt;xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:GLAccountRepeating&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString() + &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; + dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_description&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;xpnDataGroupGL = xpnNewDataGL;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//delete extra item&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;xpnTemplateGL.DeleteSelf();&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as the examples, I was searching on google using the keywords like:&amp;nbsp;infopath 2007, populate a dropdown menu using code, repeating table, populate a repeating table using code.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
&lt;p&gt;Jennifer&lt;/p&gt;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63419.aspx</link><pubDate>Fri, 21 Jan 2011 16:11:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63419</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63419</wfw:commentRss><description>&lt;p&gt;Could you show me one of these examples that use Clone()?&lt;/p&gt;
&lt;p&gt;Even with the operations in the right order, making copies of nodes to fill in a repeating table is not a very good approach.&amp;nbsp; qRules&amp;#39; Insert command uses a much more robust approach, and I suggest checking that out.&lt;/p&gt;
&lt;p&gt;The below should work:&lt;/p&gt;&lt;font color="#0000ff"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DataRow&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dRow &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; DS3.Tables[0].Rows)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; xpnDataGroupGL.InsertAfter(xpnTemplateGL);&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;&amp;nbsp;&amp;nbsp; XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xpnNewDataGL = xpnRootNodeGL.SelectSingleNode(&amp;quot;my:ExpenseDetails/my:GLAccountsGroup[last()]&amp;quot;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp; xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:GLAccountRepeatingID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp; xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:GLAccountRepeating&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString() + &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; + dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_description&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp; xpnDataGroupGL = xpnNewDataGL;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;xpnTemplateGL.DeleteSelf();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000"&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63417.aspx</link><pubDate>Fri, 21 Jan 2011 15:56:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63417</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63417</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been looking at this more and I really just don&amp;#39;t understand. Every example I see is using clone().&amp;nbsp; When I move the InsertAfter, I get an error.&amp;nbsp; Can you please send a code sample?&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;/p&gt;
&lt;p&gt;Jennifer&lt;/p&gt;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63410.aspx</link><pubDate>Fri, 21 Jan 2011 14:24:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63410</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63410</wfw:commentRss><description>&lt;p&gt;Thank you for your quick response.&amp;nbsp; Can you give me a bit more detail on what you mean with the placement of InserAfter()?&amp;nbsp; Working with this is new to me so I am not completely following what I need to change.&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;br /&gt;Jennifer&lt;/p&gt;</description></item><item><title>Re: InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63395.aspx</link><pubDate>Fri, 21 Jan 2011 01:43:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63395</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63395</wfw:commentRss><description>&lt;p&gt;Clone() doesn&amp;#39;t create a copy of the node.&amp;nbsp; You need to use InsertAfter() first, then select the newly-created node.&amp;nbsp; Also, you need to be using relative XPaths, not absolute ones.&lt;/p&gt;</description></item><item><title>InfoPath 2007 - Only first row of repeating table has auto-populated data in the dropdown list</title><link>https://www.infopathdev.com:443/forums/thread/63390.aspx</link><pubDate>Thu, 20 Jan 2011 22:49:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63390</guid><dc:creator>ShinerDog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63390</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;am using InfoPath 2007.&amp;nbsp; The form will be used as a web based form in SharePoint 2007.&amp;nbsp; Here is my scenario: I&amp;nbsp;have&amp;nbsp;a&amp;nbsp;repeating table with a dropdown menu. The dropdown menu is being autopopulated when the form is opened.&amp;nbsp; The first row of the repeating table works fine but any rows after that and the dropdown menu doesn&amp;#39;t contain the autopopulated data.&amp;nbsp;&amp;nbsp;I am not trying to do any cascading dropdown menus here...I just want the same data to appear in the dropdown.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am populating the dropdown menu by&amp;nbsp;using code-behind and calling a SQL Stored Proc.&amp;nbsp;&amp;nbsp;I am putting the data from the stored proc into a repeating group with fields (see code below).&amp;nbsp; I then create a dropdown field and use the &amp;quot;Look Up values in the form&amp;#39;s data source&amp;quot; option.&amp;nbsp; I set the Entries field to &amp;quot;/&lt;font color="#800000"&gt;my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup&amp;quot;&amp;nbsp; and the value to &amp;quot;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup/my:GLAccountRepeatingID&amp;quot; and the Display Name to &amp;quot;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup/my:GLAccountRepeating&amp;quot;.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;All of this works for the first row of my repeating table; however, when any new rows are added to the repeating table, the dropdown menu is empty.&amp;nbsp; How can I get the dropdown to populate every time a user adds a new row to the repeating table?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;Thank you!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;Jennifer&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;-----------------------&lt;font size="2"&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; xpnRootNodeGL = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:ExpenseReport&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&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; xpnDataGroupGL = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup&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;/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; xpnTemplateGL = xpnDataGroupGL.Clone();&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;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DataRow&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dRow &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; DS3.Tables[0].Rows)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&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; xpnNewDataGL = xpnTemplateGL.Clone();&lt;/p&gt;xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup/my:GLAccountRepeatingID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;xpnNewDataGL.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:ExpenseReport/my:ExpenseDetails/my:GLAccountsGroup/my:GLAccountRepeating&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_code&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString() + &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; + dRow[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;epicor_account_description&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString());&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;xpnDataGroupGL.InsertAfter(xpnNewDataGL);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//delete extra item&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;xpnDataGroupGL.DeleteSelf();&lt;/p&gt;DA3 = &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;MyConnection.Close();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>