<?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: Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections</title><link>https://www.infopathdev.com:443/forums/thread/31730.aspx</link><pubDate>Wed, 27 Aug 2008 06:48:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31730</guid><dc:creator>ZaiZai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31730</wfw:commentRss><description>&lt;p&gt;After some additional research, I have concluded that perhaps this isn&amp;#39;t the best way.&amp;nbsp; I have re-posted another question that I think is the best method in my situation.&amp;nbsp; If someone could verify this method that would be good.&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections</title><link>https://www.infopathdev.com:443/forums/thread/31712.aspx</link><pubDate>Tue, 26 Aug 2008 19:24:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31712</guid><dc:creator>ZaiZai</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31712.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31712</wfw:commentRss><description>&lt;p&gt;Hello Everyone,&lt;/p&gt;
&lt;p&gt;I am wondering what the best way is for auto populating fields in a main data connection (SQL&amp;nbsp;Server 2005) with values from secondary data connections (SQL Server 2005).&amp;nbsp; The fields from the secondary connections have many rows (some over 30K)&amp;nbsp;and because of this I need to lessen the amount of rows in a control like a dropdown list box.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here are the methods that I have studies so far.&lt;/p&gt;
&lt;p&gt;Method 1: Populating Fields After Selection With Search. &lt;/p&gt;
&lt;p&gt;Method 2: Populating Fields in main sql connection from filtering drop down lists connected to the secondary connection fields.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I would prefer method 1 over method 2.&amp;nbsp; My understand is the for method 1 to work, some coding is needed that effects the onclick event handler.&amp;nbsp;Is this method the best way?&amp;nbsp; If so, can anyone provide me with the code that would do this?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here are the details of the form.&lt;/p&gt;
&lt;p&gt;Main Data Connection: SQL Server 2005, Database is called &amp;quot;InfoPath&amp;quot;. The table within the database is called &amp;quot;.dbo.Task List&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Secondary Data Connection: SQL Server 2005, Database is called &amp;quot;Person&amp;quot;. The table within the database is called &amp;quot;dbo.Person&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Secondary Data Connection: SQL Server 2005, Database is called &amp;quot;Matter&amp;quot;. The table within the database is called &amp;quot;dbo.Matter&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The goal: A user would type in a name and click a &amp;quot;Find&amp;quot; button which would search the secondary data connection table and auto populate the appropriate main data connection fields.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Matt&lt;/p&gt;</description></item></channel></rss>