<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/37862.aspx</link><pubDate>Thu, 29 Jan 2009 19:01:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37862</guid><dc:creator>sarasdeva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=37862</wfw:commentRss><description>&lt;p&gt;Is it possible to do the same with out using code...&lt;/p&gt;
&lt;p&gt;I am having a contact selector which stores data as a repeating group. I want to assign(replicate) the contents&amp;nbsp;of the group to a repeating table. I should not use code for the same..&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35938.aspx</link><pubDate>Wed, 17 Dec 2008 17:41:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35938</guid><dc:creator>MrQuestion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35938</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I followed your suggestions, and it works just as well. Plus it&amp;#39;s easier to read.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35924.aspx</link><pubDate>Wed, 17 Dec 2008 16:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35924</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35924</wfw:commentRss><description>&lt;p&gt;Thanks for sharing this.&amp;nbsp; It looks&amp;nbsp;to me like your code is selecting groups of nodes and assigning the groups to a variable, and then not actually using the contents of the variable except to look&amp;nbsp;at the number of items in the set.&amp;nbsp; I think the code would be just a bit more efficient as follows (note the bold parts that show what I&amp;#39;ve changed). 
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;MrQuestion:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (eventObj.IsUndoRedo)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // An undo or redo operation has occurred and the DOM is read-only.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Operation == &amp;quot;Insert&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Source.text)&amp;nbsp;&amp;nbsp;&amp;nbsp; //Check to see if the New data isn&amp;#39;t blank, to prevent entering blank lines&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Grab onto the oNodeRepeatTableAB, this will be used to determin how many rows are in the AB Table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var oNodeRepeatTableAB = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(var i =&amp;nbsp;&lt;strong&gt;0&lt;/strong&gt; ; i &lt;strong&gt;&amp;lt;&lt;/strong&gt; oNodeRepeatTableAB.length ; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {//Iterate thru each row of the AB table and add new row via a clone to each Repeat Table ABC&lt;br /&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; &lt;br /&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; //Select the RepeatTableABC to clone &lt;br /&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; var oNodeRepeatTableABC = &lt;strong&gt;oNodeRepeatTableAB[i]&lt;/strong&gt;.selectSingleNode&lt;strong&gt;(&amp;quot;d:RepeatTableABC&amp;quot;)&lt;br /&gt;&lt;/strong&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; oCloneNodeRepeatTableABC = oNodeRepeatTableABC.cloneNode(true)&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create the clone&lt;br /&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; &lt;br /&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; //Set the attribute in the clone. The clone will be added as a new row to repeat table ABC&lt;br /&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; oCloneNodeRepeatTableABC.selectSingleNode(&amp;quot;./@RepeatTableABCattribute&amp;quot;).text = eventObj.Source.text&amp;nbsp;&lt;br /&gt;&lt;br /&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; &lt;strong&gt;// line deleted here&lt;/strong&gt;&lt;br /&gt;&lt;br /&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; //Insert the new clone into the repeat table&lt;br /&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; oNodeRepeatTableAB&lt;strong&gt;[i]&lt;/strong&gt;.insertBefore(oCloneNodeRepeatTableABC, oNodeRepeatTableABC)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Operation == &amp;quot;Delete&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Source.text) //Check to see if there is any information to delete&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;strong&gt;Select all nodes that should be removed&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &lt;strong&gt;oNodesToRemove&lt;/strong&gt; = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB/&lt;strong&gt;d:RepeatTableABC[@RepeatTableABCattribute=&amp;#39;&amp;quot; + eventObj.Source.text + &amp;quot;&amp;#39;]&lt;/strong&gt;&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;oNodesToRemove.removeAll()&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35922.aspx</link><pubDate>Wed, 17 Dec 2008 15:54:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35922</guid><dc:creator>MrQuestion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35922</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;After much work and on preview 980 (yes, that is 980 different previews learning this) I have create this code snippit that works for me very well. &lt;/p&gt;&lt;p&gt;This is currently connected to a MS access database, but if I was to create an XML structure for this it would probably look like this&lt;/p&gt;&lt;p&gt;&amp;lt;myFields&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataFields&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RepeatTableA&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;RepeatTableDefault&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;myFieldElement&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/RepeatTableDefault&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;RepeatTableAB&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RepeatTableABC&amp;gt;&lt;/p&gt;&lt;p&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;lt;RepeatTableABCattribute&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/RepeatTableABC&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/RepeatTableAB&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/RepeatTableA&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataFields&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;/myFields&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The field element myFieldElement is an&amp;nbsp; element that I made up in the form and is not part of the database. &lt;/p&gt;&lt;p&gt;I have a OnAfterChange event being triggered for the myFieldElement with the following code. This will add a new row and copy the new data you just entered into the myFieldElement into the repeat table ABC. It will also change or delete any values in the repeat table ABC if you make a change to the repeat table RepeatTableDefault.&amp;nbsp; I added comments along the way&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (eventObj.IsUndoRedo)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // An undo or redo operation has occurred and the DOM is read-only.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Operation == &amp;quot;Insert&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Source.text)&amp;nbsp;&amp;nbsp;&amp;nbsp; //Check to see if the New data isn&amp;#39;t blank, to prevent entering blank lines&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Grab onto the oNodeRepeatTableAB, this will be used to determin how many rows are in the AB Table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var oNodeRepeatTableAB = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(var i = 1 ; i &amp;lt;= oNodeRepeatTableAB.length ; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {//Iterate thru each row of the AB table and add new row via a clone to each Repeat Table ABC&lt;br /&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; &lt;br /&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; //Select the RepeatTableABC to clone &lt;br /&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; var oNodeRepeatTableABC = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB[&amp;quot; + i + &amp;quot;]/d:RepeatTableABC&amp;quot;)&lt;br /&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; oCloneNodeRepeatTableABC = oNodeRepeatTableABC.cloneNode(true)&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create the clone&lt;br /&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; &lt;br /&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; //Set the attribute in the clone. The clone will be added as a new row to repeat table ABC&lt;br /&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; oCloneNodeRepeatTableABC.selectSingleNode(&amp;quot;./@RepeatTableABCattribute&amp;quot;).text = eventObj.Source.text &lt;br /&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; &lt;br /&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; //Grab the parent row (in this case the row of interest in Repeat Table AB) where the RepeatTableABC resides&lt;br /&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; var oNodeRepeatTableAB = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB[&amp;quot; + i + &amp;quot;]&amp;quot;)&lt;br /&gt;&lt;br /&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; //Insert the new clone into the repeat table&lt;br /&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; oNodeRepeatTableAB.insertBefore(oCloneNodeRepeatTableABC, oNodeRepeatTableABC)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Operation == &amp;quot;Delete&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(eventObj.Source.text) //Check to see if there is any information to delete&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Grab onto the oNodeRepeatTableAB, this will be used to determin how many rows are in the repeat table AB&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var oNodeRepeatTableAB = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(var i = 1 ; i &amp;lt;= oNodeRepeatTableAB.length ; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {//Iterate thru each row of repeat table AB and remove the matching information&lt;br /&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; &lt;br /&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; //Select the rows within repeat table ABC that resides inside row(i) of repeat table AB that have the matching attribute of the desired text to be removed&lt;br /&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; var oNodeRepeatTableABC = XDocument.DOM.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/d:RepeatTableA/d:RepeatTableAB[&amp;quot; + i + &amp;quot;]/d:RepeatTableABC[@RepeatTableABCattribute=&amp;#39;&amp;quot; + eventObj.Source.text + &amp;quot;&amp;#39;]&amp;quot;)&lt;br /&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; &lt;br /&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; //Remove all rows within Repeat Table ABC that have the desired text to be removed&lt;br /&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; oNodeRepeatTableABC.removeAll()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have spent much time learning JS and the DOM structure in the last week. If there are practices that i&amp;#39;m doing in this code which are ill advise or not suggested please inform me.&amp;nbsp; I have compared the data in the Access database and the data is being submitted without issue. I would like to thank this forum for the support it has provided, without this forum and it&amp;#39;s articals; I wouldn&amp;#39;t have been able to finish this stage of my project. I hope this code helps with anybody wanting to copy the contents from table to another.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35716.aspx</link><pubDate>Thu, 11 Dec 2008 23:13:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35716</guid><dc:creator>MrQuestion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35716</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In my Access database I have several tables that has an autonumber, but in my form I just ignore them (ie. not displayed on the form) because it is generated when I submit the form. Are you wanting to add your existing fields to repeat table, or are you wanting your existing fields to have a pre-set value determined elsewhere in the form and repeat? If it is the first issue then simple make a repeat table from a data key (probably the autonumber field) and add all of the other fields inside that repeat table. If it is the latter, then we are having the same issue. It seems like something that should be easy and wouldn&amp;#39;t need code to do. &lt;/p&gt;&lt;p&gt;Let me describe my case in more details.&lt;/p&gt;&lt;p&gt;I have Connector&lt;/p&gt;&lt;p&gt;This connector has many cavities&lt;/p&gt;&lt;p&gt;Each cavity can have several different terminal pins, but usually all cavities have at least some terminal pins in common&lt;br /&gt;&lt;/p&gt;&lt;p&gt;So my structure is like so,&lt;/p&gt;&lt;p&gt;-Connector&lt;/p&gt;&lt;p&gt;--&amp;gt;Cavity&lt;/p&gt;&lt;p&gt;---&amp;gt; Terminals&lt;/p&gt;&lt;p&gt;The &amp;quot;Cavity&amp;quot; is a repeat table that has the name of the pin and location and another repeating table that list all of the possible &amp;quot;Terminals&amp;quot; that can fit inside this cavity. (there are many more attributes in each table)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I already have code that creates an X number of &amp;quot;Cavity&amp;quot; rows in the repeat table as determined by an attribute of the &amp;quot;Connector&amp;quot;.&lt;/p&gt;&lt;p&gt;I want to be able to have another Repeat table called &amp;quot;Defaults&amp;quot; and have that information copied to &amp;quot;Terminals&amp;quot;&lt;/p&gt;&lt;p&gt;So I would like to have a structure like so where Defaults and Cavity are on the same level.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;-Connector&lt;/p&gt;&lt;p&gt;--&amp;gt;Defaults&lt;/p&gt;&lt;p&gt;--&amp;gt;Cavity&lt;/p&gt;&lt;p&gt;---&amp;gt; Terminals&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help would be much appreciated.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35709.aspx</link><pubDate>Thu, 11 Dec 2008 22:14:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35709</guid><dc:creator>murphythadog</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35709.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35709</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m having a similar problem as well.&amp;nbsp; I&amp;#39;ve been using Infopath for about 10 hours with no programming experience.&amp;nbsp; I&amp;#39;ve managed to fumble through and get my bosses, spreadsheet into InfoPath using different views for each tab.&amp;nbsp; He has a table that is prepopulated with an autonumber field, he has a room descriptions field, he has a quantity field, a room size field and a function field that multiplies the room size by the number of rooms.&amp;nbsp; I can do this with a static table but he will never be able to add another row unless I fix the form.&amp;nbsp; I saw that InfoPath has repeating tables but I&amp;#39;m not sure how to prepopulate this table?&amp;nbsp; Anybody know how to do this? Also sorry for thread jacking. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/35617.aspx</link><pubDate>Wed, 10 Dec 2008 18:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35617</guid><dc:creator>MrQuestion</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35617.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=35617</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am also having a very similar issue. I have only a couple weeks experience with infopath 2003.&amp;nbsp; The form I&amp;#39;m creating is fairly difficult to describe, but let me give this a try (are you any good at word problems?). I have a repeating table that only contains one text box my:Defaults the table XCollection name is Defaults_22. I have a second repeating table outside of Defaults_22 with the XCollection name of Con_16. Inside Con_16 I have another repeating table with the XCollection name Pin_14. I want the values within Defaults_22 to set the values inside Pin_14.&lt;/p&gt;&lt;p&gt;The reasoning is that Con_16 may have many rows and every row will need to have the default values of Defaults_22 already set for the (rows inside the rows) Pin_14. I will need to have the freedom to add or remove a row in Pin_14 for each unique row of Con_16. This data is being placed into an access database. Outside that of setting the defualts the form does work with the database, unfortunatly it get tedious to constantly add the default values to each row within Pin_14.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I suscpect that some programming will be needed. I am an experienced embedded c programmer, but unfortunatly this skill doesn&amp;#39;t seem to trasfer well when dealing with infopath forms outside that of logical process.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Any help would be appreceated, even a suggestion.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/33594.aspx</link><pubDate>Tue, 28 Oct 2008 16:01:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33594</guid><dc:creator>RichW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33594</wfw:commentRss><description>&lt;p&gt;The rules are applied to the data source that is populated from an MS Access query into repeating table 1. There are no conditions set and the action is: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set a field&amp;#39;s value:&amp;nbsp;Item_Description = @Item_Name&lt;/p&gt;
&lt;p&gt;where Item_Description is the from&amp;nbsp;repeating table 2&amp;nbsp;and @Item is from&amp;nbsp;repeating table 1&lt;/p&gt;
&lt;p&gt;You may be right about not being able to copy the entire contents from one repeating table to another. The rule *does* work but only for the first row. &lt;/p&gt;
&lt;p&gt;If this can&amp;#39;t be done with repeating tables, are there any other controls that would do so? I&amp;#39;m trying to minimize coding if possible.&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/33561.aspx</link><pubDate>Tue, 28 Oct 2008 05:45:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33561</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33561</wfw:commentRss><description>&lt;p&gt;Could you describe the rules you&amp;#39;re using with a little more detail?&amp;nbsp; I think it may not be possible to use rules to copy the entire contents&amp;nbsp;of a repeating section and that this may require code.&lt;/p&gt;</description></item><item><title>Populating one repeating table from another only shows first row</title><link>https://www.infopathdev.com:443/forums/thread/33546.aspx</link><pubDate>Mon, 27 Oct 2008 15:06:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33546</guid><dc:creator>RichW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=33546</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please help, I&amp;#39;m stuck on this one! &lt;/p&gt;
&lt;p&gt;I have a repeating table that is&amp;nbsp;&lt;em&gt;receiving &lt;/em&gt;data from&amp;nbsp;a secondary data source which is an MS Acess database query. The table&amp;nbsp;reads the data&amp;nbsp;correctly.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to load&amp;nbsp;this data&amp;nbsp;into a read-only&amp;nbsp;&lt;em&gt;&lt;u&gt;second &lt;/u&gt;&lt;/em&gt;repeating table which is bound to my&amp;nbsp;main XML data.&amp;nbsp;I&amp;#39;m using rules applied to the secondary data source to set the value of the second repeating table. The problem is that only the first row is displayed.&lt;/p&gt;
&lt;p&gt;Any ideas out there?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-RichW&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>