<?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: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/95145.aspx</link><pubDate>Fri, 10 Jan 2014 16:49:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95145</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95145</wfw:commentRss><description>Thanks Hilary, I forgot to put on the previous comment that I am unable to add in an &amp;quot;id&amp;quot; field on to the Secondary Database Connection ...

&lt;p&gt;
&lt;p&gt;Also thanks for the help and you time so far Hilary and donStephen</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/95136.aspx</link><pubDate>Fri, 10 Jan 2014 15:57:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95136</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95136</wfw:commentRss><description>&lt;p&gt;Actually, since those fields are not in the repeating group, you should be able to add them to your database bound form - right click the topmost folder in the data source task pane and you can add fields that won&amp;#39;t be submitted to your DB.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/95132.aspx</link><pubDate>Fri, 10 Jan 2014 14:44:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95132</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95132.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95132</wfw:commentRss><description>The problem with that approach is that I am trying to submit into a database table, meaning I am unable to add the &amp;quot;count&amp;quot; and &amp;quot;lastitem&amp;quot; fields .. which are needed :(

&lt;p&gt; Unless there&amp;#39;s a way to submit user created fields into the database table?</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/95119.aspx</link><pubDate>Fri, 10 Jan 2014 13:00:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95119</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95119</wfw:commentRss><description>InfoPath&amp;#39;s built in functionality has its&amp;nbsp;limitations, and automatically inserting&amp;nbsp;multiple rows is one of them. Please check the form I am attaching for the copy table approach without using qRules. I hope this helps.</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/95118.aspx</link><pubDate>Fri, 10 Jan 2014 11:00:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95118</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95118.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95118</wfw:commentRss><description>Thanks donstephen, but I do not have qRules, is there any way to do it without?</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94997.aspx</link><pubDate>Fri, 03 Jan 2014 01:05:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94997</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94997</wfw:commentRss><description>&lt;p&gt;It seems that you’ll need to manually add the qRules DLL instead of injecting. Please refer to &lt;a href="http://www.infopathdev.com/files/folders/qrules/entry56111.aspx"&gt;this&lt;/a&gt; guide for the steps. Also, there were some rules which were omitted at target the repeating group (see image below).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://img706.imageshack.us/img706/7885/50tt.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94963.aspx</link><pubDate>Tue, 31 Dec 2013 14:36:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94963</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94963</wfw:commentRss><description>I&amp;#39;m trying to use the second approach that uses the qRules&amp;#39; Insert command, but I am having difficulty getting it to work. Maybe its because I am using a database as the main connection instead of an XML connection? I&amp;#39;ve attached my InfoPath form with the QdabraRules inside the form.
&lt;p&gt;
&lt;p&gt;
Would really appreciate it if you could have a look :)</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94961.aspx</link><pubDate>Tue, 31 Dec 2013 10:08:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94961</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94961</wfw:commentRss><description>&lt;p&gt;Whoops. Didn&amp;#39;t notice that. I&amp;#39;ve updated the previous attachment to 2007.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94960.aspx</link><pubDate>Tue, 31 Dec 2013 10:03:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94960</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94960</wfw:commentRss><description>Thanks for the reply donstephen, could you please resend that form in InfoPath 2007 :)</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94959.aspx</link><pubDate>Tue, 31 Dec 2013 09:55:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94959</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94959</wfw:commentRss><description>&lt;p&gt;Please check the two approaches we have for copying repeating tables on the attached form. The first approach uses a trigger technique, while the second one uses qRules&amp;#39; Insert command.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94958.aspx</link><pubDate>Tue, 31 Dec 2013 09:07:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94958</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94958</wfw:commentRss><description>&lt;p&gt;Thank you for your help donstephen, but I was looking for the secondary data source fields to be submitted into the main data connection into separate records, not one large concatenated entry, please see the attached example of what I am trying to do.
&lt;p&gt;
&lt;p&gt;Basically trying to copy the fields in a secondary data source like for like and submitting them into my main data connection as separate records. So if I have 20 colours names in my secondary data source, I want those 20 colour names to be submitted into my main data connection as 20 records. I feel that the VB code I have been working on is almost complete but it is throwing up an error. Could you please take a look :)
&lt;p&gt;
&lt;p&gt;Thanks you once again, your help throughout has been much appreciated</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94950.aspx</link><pubDate>Mon, 30 Dec 2013 14:32:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94950</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94950</wfw:commentRss><description>&lt;p&gt;Thank you for the additional information. I am attaching an updated form. Please check if this approach works for you.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94948.aspx</link><pubDate>Mon, 30 Dec 2013 13:14:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94948</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94948</wfw:commentRss><description>Thanks donstephen, the approach is what I am looking for, however I need to populate the same field multiple times from the Secondary data source.</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94947.aspx</link><pubDate>Mon, 30 Dec 2013 13:06:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94947</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94947</wfw:commentRss><description>&lt;p&gt;Apologies for that. Here&amp;#39;s the form&amp;nbsp;converted to&amp;nbsp;InfoPath 2007. Please check if this&amp;nbsp;approach is close to what you&amp;#39;re looking for. If not, kindly attach&amp;nbsp;a copy or a sample of your form so I can get a better idea of what you need.&lt;/p&gt;</description></item><item><title>Re: Populate main table from secondary table</title><link>https://www.infopathdev.com:443/forums/thread/94946.aspx</link><pubDate>Mon, 30 Dec 2013 12:53:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94946</guid><dc:creator>hayer89</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94946</wfw:commentRss><description>&lt;p&gt;Thanks for your reply donstephen, just to answer your question my button is located within the repeating table, I am however unable to open your sample form as I only have InfoPath 2007 SP3 to work with.
&lt;p&gt;
&lt;p&gt;
&lt;p&gt;The code is:
&lt;p&gt;
  &lt;p&gt;Public Sub CTRL151_4_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
 &lt;p&gt; Dim secDSNav As XPathNavigator = DataSources(&amp;quot;SecondaryTable&amp;quot;).CreateNavigator()
&lt;p&gt;
    &lt;p&gt;    &amp;#39;Retrieve the rows of the secondary data source&amp;#39;
        &lt;p&gt;Dim rows As XPathNodeIterator = secDSNav.Select( _
        &lt;p&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:SecondaryTable&amp;quot;, _
       &lt;p&gt; NamespaceManager)
&lt;p&gt;
      &lt;p&gt;  &amp;#39;Loop through the rows of the secondary data source and fill the repeating table &amp;#39;
        &lt;p&gt;While rows.MoveNext()
            &lt;p&gt;Dim ID As String = rows.Current.SelectSingleNode( _
            &lt;p&gt;&amp;quot;@SecondID&amp;quot;, NamespaceManager).Value
&lt;p&gt;
          &lt;p&gt;  &amp;#39; Add the item to the repeating table &amp;#39;
            &lt;p&gt;AddItem(ID)
        &lt;p&gt;End While
&lt;p&gt;
        &lt;p&gt;&amp;#39; Remove the first empty item from the repeating table &amp;#39;
        &lt;p&gt;DeleteFirstEmptyItem()
    &lt;p&gt;End Sub
&lt;p&gt;
 &lt;p&gt;Private Sub AddItem( _
    &lt;p&gt;ByVal ID As String)
&lt;p&gt;
       &lt;p&gt; Dim doc As XmlDocument = New XmlDocument()
        &lt;p&gt;Dim group As XmlNode = doc.CreateElement(&amp;quot;MainTable&amp;quot;, _
        &lt;p&gt;NamespaceManager.LookupNamespace(&amp;quot;d&amp;quot;))
&lt;p&gt;
        &lt;p&gt;Dim field As XmlNode = doc.CreateElement(&amp;quot;MainID&amp;quot;, _
        &lt;p&gt;NamespaceManager.LookupNamespace(&amp;quot;@&amp;quot;))
        &lt;p&gt;Dim node As XmlNode = group.AppendChild(field)
       &lt;p&gt; node.InnerText = ID
&lt;p&gt;
       &lt;p&gt; doc.AppendChild(group)
&lt;p&gt;
       &lt;p&gt;  MainDataSource.CreateNavigator().SelectSingleNode( _
        &lt;p&gt;&amp;quot;/dfs:myFields/dfs:dataFields&amp;quot;, _
       &lt;p&gt; NamespaceManager).AppendChild(doc.DocumentElement.CreateNavigator())
&lt;p&gt;
   &lt;p&gt; End Sub
&lt;p&gt;
         &lt;p&gt;Private Sub DeleteFirstEmptyItem()
&lt;p&gt;
       &lt;p&gt; Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()
       &lt;p&gt; Dim itemNav As XPathNavigator = domNav.SelectSingleNode( _
       &lt;p&gt; &amp;quot;/dfs:myFields/dfs:dataFields/@MainID[1]&amp;quot;, _
       &lt;p&gt; NamespaceManager)
&lt;p&gt;
       &lt;p&gt; If itemNav IsNot Nothing Then
        &lt;p&gt;    itemNav.DeleteSelf()
       &lt;p&gt; End If
    &lt;p&gt;End Sub
&lt;p&gt;However my code works when I try to populate custom made Fields and Groups, here is my code:
&lt;p&gt;
  &lt;p&gt;Public Sub CTRL151_4_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
        &lt;p&gt;Dim secDSNav As XPathNavigator = DataSources(&amp;quot;SecondaryTable&amp;quot;).CreateNavigator()
&lt;p&gt;
      &lt;p&gt;  &amp;#39; Retrieve the rows of the secondary data source
      &lt;p&gt;  Dim rows As XPathNodeIterator = secDSNav.Select( _
        &lt;p&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:SecondaryTable&amp;quot;, _
       &lt;p&gt; NamespaceManager)
&lt;p&gt;
       &lt;p&gt; &amp;#39; Loop through the rows of the secondary data source and fill the repeating table
       &lt;p&gt; While rows.MoveNext()
         &lt;p&gt;   Dim ID As String = rows.Current.SelectSingleNode( _
           &lt;p&gt; &amp;quot;@SecondID&amp;quot;, NamespaceManager).Value
&lt;p&gt;
          &lt;p&gt;  &amp;#39; Add the item to the repeating table
         &lt;p&gt;   AddItem(ID)
      &lt;p&gt;  End While
&lt;p&gt;
       &lt;p&gt; &amp;#39; Remove the first empty item from the repeating table
      &lt;p&gt;  DeleteFirstEmptyItem()
   &lt;p&gt; End Sub
&lt;p&gt;
    &lt;p&gt;Private Sub AddItem( _
    &lt;p&gt;ByVal ID As String)
&lt;p&gt;
      &lt;p&gt;  Dim doc As XmlDocument = New XmlDocument()
      &lt;p&gt;  Dim group As XmlNode = doc.CreateElement(&amp;quot;group2&amp;quot;, _
        &lt;p&gt;NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;))
&lt;p&gt;
       &lt;p&gt; Dim field As XmlNode = doc.CreateElement(&amp;quot;MainID&amp;quot;, _
       &lt;p&gt; NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;))
       &lt;p&gt; Dim node As XmlNode = group.AppendChild(field)
       &lt;p&gt; node.InnerText = ID
&lt;p&gt;
        &lt;p&gt;doc.AppendChild(group)
&lt;p&gt;
       &lt;p&gt; MainDataSource.CreateNavigator().SelectSingleNode( _
       &lt;p&gt; &amp;quot;/dfs:myFields/my:group1&amp;quot;, _
        &lt;p&gt;NamespaceManager).AppendChild(doc.DocumentElement.CreateNavigator())
&lt;p&gt;
   &lt;p&gt; End Sub
&lt;p&gt;
   &lt;p&gt; Private Sub DeleteFirstEmptyItem()
&lt;p&gt;
        &lt;p&gt;Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()
        &lt;p&gt;Dim itemNav As XPathNavigator = domNav.SelectSingleNode( _
       &lt;p&gt; &amp;quot;/dfs:myFields/my:group1/my:group2/my:MainID[1]&amp;quot;, _
       &lt;p&gt; NamespaceManager)
&lt;p&gt;
        &lt;p&gt;If itemNav IsNot Nothing Then
           &lt;p&gt; itemNav.DeleteSelf()
      &lt;p&gt;  End If
    &lt;p&gt;End Sub
&lt;p&gt;End Class
&lt;p&gt;
&lt;p&gt;But what I really need is to populate my Main Data Connection so that I can Submit all of the ID&amp;#39;s.</description></item></channel></rss>