<?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: database connection and autofilling repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24092.aspx</link><pubDate>Wed, 31 Oct 2007 17:49:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24092</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24092</wfw:commentRss><description>&lt;p&gt;Hi, another thing I just noticed is that your one of your tables does not have a primary key, this prevents submission.&lt;/p&gt;
&lt;p&gt;Fix this and you can query and submit.&lt;/p&gt;
&lt;p&gt;Happy Halloween&lt;/p&gt;</description></item><item><title>Re: database connection and autofilling repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24073.aspx</link><pubDate>Wed, 31 Oct 2007 06:24:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24073</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24073</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, shjould have welcomed you to the forums!&lt;/p&gt;
&lt;p&gt;OK, I think the issue you are having due to the query being run again on submit and the form getting confused.&amp;nbsp; That is why it is better to have it on a button so that it doesn&amp;#39;t re-run.&lt;/p&gt;
&lt;p&gt;To store the result you would need a field in the first database to act as the sum of the hours in the subsidiary database.&amp;nbsp; Looking at your files you would need hourly rate, total&lt;/p&gt;
&lt;p&gt;You can go into your repeating table to filter the results on the display tab of its properties.&lt;/p&gt;
&lt;p&gt;One other consideration it would be worth having your tables connected the other way around so that the hours sum up for each client rather than you current setup.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item><item><title>Re: database connection and autofilling repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24072.aspx</link><pubDate>Wed, 31 Oct 2007 05:15:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24072</guid><dc:creator>mgleed</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24072</wfw:commentRss><description>&lt;p&gt;Thank you for being so helpful, but there&amp;#39;s still some issues..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I figured out a way, almost like how you said, to type a client&amp;#39;s name and then it fills the address and the other repeating table also. I had to make a whole new form that was not blank, but rather based on a database so I could get the query options. But now I cannot store information of the controls within the form, which I&amp;#39;d used in my previous form using functions to calculate the total cost, taxes, discount, etc.. But I am now getting some error that the query cannot be submitted or something when I hit the submit button, so the form basically is useless now until I can figure out how to fix it. It was working before... I tried redoing parts of the form but to no avail.&lt;/p&gt;&lt;p&gt; But say I do get that fixed I can&amp;#39;t figure out your explanation of getting the sum of the hours. I&amp;#39;m not sure I understand your explanation, butI think I might have done it the way you were meaning but it ended up adding up all the hours in the entire database, not just for the selected client. I don&amp;#39;t know if theres some type of filter I could apply, but otherwise I&amp;#39;m not sure how I&amp;#39;d fix that.&amp;nbsp; I also figured out how to format the total amount of text allowed in a text box, but I can&amp;#39;t figure out how to constrain the decimal places instead. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for your help so far&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;see this link to download the files I&amp;#39;m using..&amp;nbsp; http://overheardonmyspace.com/pics/statements.zip&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: database connection and autofilling repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24054.aspx</link><pubDate>Tue, 30 Oct 2007 18:21:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24054</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24054</wfw:commentRss><description>&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Easiest way to do this, I think is to have the two tables related by a common field in the same database.&amp;nbsp; Then change the drop-down list to be a queryfield bound to the same field and add a query button to pull back the records in the tables that match the customer in the querfield.&lt;/p&gt;
&lt;p&gt;To sum the hours you need a field ABOVE the repeating table in the relationship between the tables, then drop it in place and set it&amp;#39;s default value to SUM(HOURS)&lt;/p&gt;
&lt;p&gt;To fix the missing digit double-click the field and click, format, then format it to always have 2 d.p.&lt;/p&gt;
&lt;p&gt;I hope this helps&lt;/p&gt;</description></item><item><title>database connection and autofilling repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24003.aspx</link><pubDate>Fri, 26 Oct 2007 06:36:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24003</guid><dc:creator>mgleed</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24003.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=24003</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;#39;m kind of new to InfoPath. I&amp;#39;ve got several questions and I think this could belong in at least 3 of these threads. So I hope some people will see this. :p &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; I&amp;#39;m trying to create a statement form. I figured out the way to autofill the address (from database 1) after selecting the client name in a drop-down menu by reading an autofill tutorial on this site. But, after selecting the client&amp;#39;s name, I&amp;#39;d also like it to autofill the columns below by a link to another database containing the date, type of work, and amount of hours I helped them (database 2). I suspect I&amp;#39;d accomplish this by using a repeating table, but I can&amp;#39;t figure out what rules i&amp;#39;d assign or what script I&amp;#39;d write to have it autofill. I don&amp;#39;t think I&amp;#39;ve got the databases wrong, so I imagine I&amp;#39;m making mistakes within InfoPath.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Is it possible to say, select Client A, and have all the dates/description/hours in the database go with it, even if the client is on multiple rows? see the picture of database 2. &lt;/p&gt;&lt;p&gt;Despite my mishaps, I managed to figure out the formula to calculate the taxes, client discounts, total cost, etc., but I&amp;#39;d like to find a way to add up all the hours in the hours column so the total will automatically be calculated.&amp;nbsp;&lt;/p&gt;&lt;p&gt;And one more thing, when I enter formulae into the bottom part of the form they don&amp;#39;t take into account significant digits of prices. It&amp;#39;ll say $120.2 instead of $120.20, if I can&amp;#39;t figure out this part I don&amp;#39;t think it&amp;#39;ll be a big deal, but it&amp;#39;d be nice. &lt;/p&gt;&lt;p&gt;Please help!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Database 1&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.overheardonmyspace.com/pics/help2.gif" align="left" height="134" width="658" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Database 2&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.overheardonmyspace.com/pics/help3.gif" height="193" width="807" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Infopath Form&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://www.overheardonmyspace.com/pics/help4.gif" alt="" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>