<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Adding a data source to an existing form does not show query fields only data fields - puzzled?</title><link>https://www.infopathdev.com:443/forums/thread/23275.aspx</link><pubDate>Wed, 26 Sep 2007 06:16:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23275</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23275</wfw:commentRss><description>&lt;p&gt;Hey Ed.&lt;/p&gt;
&lt;p&gt;The problem you are running into is that for InfoPath&amp;#39;s default functionality in regards to a database form to be enabled it must be created as a database type form initially.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The limitations are any secondary data connection to a database directly can only receive data and has no way of querying the data. It is all loaded and you must filter for what you specifically need. This often causes problems because the tables can be very large&amp;nbsp;and&amp;nbsp;you may only need a row or two of data and the performance can really suffer.&lt;/p&gt;
&lt;p&gt;Otherwise if you create a database form template as a new template. You get one primary data connection which can query and submit, but only one table or group of related tables.&amp;nbsp; This is often an issue since you want to query a table other than your main data or you want to submit to several tables.&lt;/p&gt;
&lt;p&gt;The solution is to use webservices. Our Database Accelerator has web services which can both submit to and query multiple tables. Also in your case it includes an Active Directory service which you can use to identify each user automatically when the form loads. it can also look up others by their username.&lt;/p&gt;
&lt;p&gt;You should be able to do what you are attempting by creating a secondary data connection, which will load all of the data from your table. Then use a filter on the name field in your form that says it should be equal to the name field&amp;nbsp;from your secondary DC filtered by accountID = your drop down or what was entered.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Adding a data source to an existing form does not show query fields only data fields - puzzled?</title><link>https://www.infopathdev.com:443/forums/thread/23274.aspx</link><pubDate>Tue, 25 Sep 2007 20:36:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23274</guid><dc:creator>Ed Rodman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23274</wfw:commentRss><description>&lt;div class="wordwrap"&gt;I have inherited a form that someone in my organization created in InfoPath. There are several places where the user enters an account id and account name. I want to change that so that once they enter the account id, they can click a button and have a query run and get that name.&lt;br /&gt;I did it easily on a new form with the &lt;a class="iAs" style="FONT-WEIGHT:normal;FONT-SIZE:100%;PADDING-BOTTOM:1px;COLOR:darkgreen;BORDER-BOTTOM:darkgreen 0.07em solid;BACKGROUND-COLOR:transparent;TEXT-DECORATION:underline;" href="http://www.tek-tips.com/viewthread.cfm?qid=1411792&amp;amp;page=1#" target="_blank"&gt;data&lt;/a&gt; source, with the query and data fields...However, when I tried to incorporate that into the existing form only the data fields display in the data source, not the query fields and data fields. When I run the query by clicking a button that runs the query, it is sitting on the first record.&lt;br /&gt;How can I get the query field onto the form????? &lt;/div&gt;</description></item></channel></rss>