<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate Main from Secondary on Open</title><link>https://www.infopathdev.com:443/forums/thread/16896.aspx</link><pubDate>Fri, 24 Sep 2004 12:44:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16896</guid><dc:creator>oakridge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16896.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16896</wfw:commentRss><description>Thanks for your time.&lt;br /&gt;&lt;br /&gt;I am using InfoPath to retrieve and submit data to a SQL 2000 database.&lt;br /&gt;&lt;br /&gt;I have a main database connection that is connected to three tables.  There is a one to many relationship between the tables.&lt;br /&gt;&lt;br /&gt;Machine Type to Parent Item&lt;br /&gt;Parent Item to Component Item&lt;br /&gt;&lt;br /&gt;I have a Secondary Data Source that contains these fields in them&lt;br /&gt;Machine Type, Parent Item, Component Item.&lt;br /&gt;&lt;br /&gt;I am hoping for one of these two options.&lt;br /&gt;1. On Open, populate the three fields above.  Machine Type would be imported into a field called Item No in the first table in the Main database and displayed on the form.&lt;br /&gt;Parent Item would be populated in a repeating section&lt;br /&gt;Component Item would be populated within the same repeating section in a repeating table.&lt;br /&gt;&lt;br /&gt;2. The other option is to have the information displayed as the Machine Type is selected from a dropdown.&lt;br /&gt;&lt;br /&gt;The look would be as below&lt;br /&gt;Item No.&lt;br /&gt;&lt;br /&gt;Repeating Section: Parent&lt;br /&gt;Within the Repeating Section a Repeating Table&lt;br /&gt;Comp&lt;br /&gt;Comp&lt;br /&gt;Comp&lt;br /&gt;&lt;br /&gt;Parent Item: 1234&lt;br /&gt;Component: 3456&lt;br /&gt;Component: 432&lt;br /&gt;Component: 678&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Populate Main from Secondary on Open</title><link>https://www.infopathdev.com:443/forums/thread/16895.aspx</link><pubDate>Thu, 23 Sep 2004 18:27:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16895</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16895</wfw:commentRss><description>At this point I will need you to provide more information about the forms and your intentions. I'll need this in order to understand what you are attempting to do and what is actually happening.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Populate Main from Secondary on Open</title><link>https://www.infopathdev.com:443/forums/thread/16894.aspx</link><pubDate>Wed, 22 Sep 2004 13:00:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16894</guid><dc:creator>oakridge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16894</wfw:commentRss><description>I am working with the rules method, but am only getting the first parent item and child item even though they are in a repeating section.  Why does the form not retrieve all of the parent items instead of just the first one?</description></item><item><title>Re: Populate Main from Secondary on Open</title><link>https://www.infopathdev.com:443/forums/thread/16893.aspx</link><pubDate>Wed, 22 Sep 2004 00:15:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16893</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16893</wfw:commentRss><description>Without scripting you'll need to use the Open Rules. But this can be tedious if there are numerous fields.&lt;br /&gt;&lt;br /&gt;The best thing to do is to have the main data source (or at least a subsection of it) identical to the schema of the secondary data source. Then you can use script to just do a clone of the secondary data source, and then do a replaceChild into the main data source.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Populate Main from Secondary on Open</title><link>https://www.infopathdev.com:443/forums/thread/16698.aspx</link><pubDate>Tue, 21 Sep 2004 21:09:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16698</guid><dc:creator>oakridge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16698</wfw:commentRss><description>I am trying to populate the form from a secondary data source on open then submit that data along with other entries into the main database.  &lt;br /&gt;&lt;br /&gt;I am working with a bill of materials.  There are parent and child components.  I have the parent in a repeating section with the child elements in a repeating table within that table. There should be multiple entries for the child elements per parent.  I can only get the form to bring up the first parent and first component.  Any ideas how to do this without scripting?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item></channel></rss>