<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Duplicate data in Main Data Source from Secondary Data Source (Web Service)</title><link>https://www.infopathdev.com:443/forums/thread/28915.aspx</link><pubDate>Sat, 24 May 2008 00:36:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28915</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=28915</wfw:commentRss><description>&lt;p&gt;yes you need code to iterate through all of the repeating nodes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think Greg has some blog posts on this.&lt;/p&gt;</description></item><item><title>Duplicate data in Main Data Source from Secondary Data Source (Web Service)</title><link>https://www.infopathdev.com:443/forums/thread/28885.aspx</link><pubDate>Thu, 22 May 2008 18:58:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28885</guid><dc:creator>Patrick</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=28885</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have been working with this problem for a couple days now.&amp;nbsp; My Main Data Source has a lot more fields than displayed below, but here are examples of my Data Sources (using a 1 column sample of the data):&lt;/p&gt;&lt;p&gt;&lt;b&gt;Main Data Source&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&amp;nbsp;OMS&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuoteManagement_sec (repeating group)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;QMS_VendorName_txt&lt;/i&gt; (text box)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Secondary Data Source (Web Service)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;&lt;/b&gt;myFields&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; queryFields (group)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  dataFields (group)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; VendorCircuitQuote (repeating group)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp; &lt;i&gt;VendorName&lt;/i&gt; (text box)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I can receive data back from my web service just fine.&amp;nbsp; It populates non-repeating data and repeating data into my form appropriately, and there is a unique identifier in each row of the returned data.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I need a way to take the values that get returned to a repeating table from the web service and duplicate those values to a repeating table that I created in my Main Data Source.&lt;/p&gt;&lt;p&gt;We&amp;#39;ll call these tables WebTable and MainTable, respectively.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried to test this with a single field.&amp;nbsp; I have inserted the repeating table from my Main into the form and set the default value of the field (&lt;i&gt;QMS_VendorName_txt&lt;/i&gt;) to equal the field (&lt;i&gt;VendorName&lt;/i&gt;).&amp;nbsp; &lt;/p&gt;&lt;p&gt;The problem arises after I refresh the query.&amp;nbsp; The values populate the WebTable, but only one row is created in the MainTable, with the value of the first row equal to that in the WebTable.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I suppose I need a way for the MainTable to check how many rows are created in the WebTable and populate each row with the corresponding values.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I can provide pictures, more description, i.e. whatever else anyone needs to understand further.&amp;nbsp; Can anyone help?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Thanks!&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;</description></item></channel></rss>