<?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: Form grinds to a halt after database look-up</title><link>https://www.infopathdev.com:443/forums/thread/33543.aspx</link><pubDate>Mon, 27 Oct 2008 14:52:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33543</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33543</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t be sure, but it sounds like the form is running slowly because it is weeding through the entire 5000 row table in your secondary DOM when the rule is run.&amp;nbsp; You may want to consider&amp;nbsp;instead running an&amp;nbsp;SQL query to get the employee you&amp;nbsp;want, and not store the whole table in your secondary DOM.&lt;/p&gt;
&lt;p&gt;For examples of how to do this, please see:&lt;br /&gt;&lt;a href="http://www.infopathdev.com/forums/p/9467/33496.aspx#33496"&gt;&lt;font color="#666666"&gt;http://www.infopathdev.com/forums/p/9467/33496.aspx#33496&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;and&lt;br /&gt;&lt;a href="http://www.infopathdev.com/forums/p/8940/31780.aspx#31780"&gt;&lt;font color="#666666"&gt;http://www.infopathdev.com/forums/p/8940/31780.aspx#31780&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Form grinds to a halt after database look-up</title><link>https://www.infopathdev.com:443/forums/thread/33541.aspx</link><pubDate>Mon, 27 Oct 2008 13:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33541</guid><dc:creator>dprice_2000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33541</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;The rule is as follows:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Colleague_Information&amp;quot;)/dfs:myFields/dfs:dataFields/d:Colleague_Information/@last_name[../@employee_number = current()]&lt;/p&gt;
&lt;p&gt;There is no other code involved.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item><item><title>Re: Form grinds to a halt after database look-up</title><link>https://www.infopathdev.com:443/forums/thread/33521.aspx</link><pubDate>Sat, 25 Oct 2008 01:18:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33521</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33521</wfw:commentRss><description>&lt;p&gt;Are you querying the entire table every time? If so, the form is probably running slowly because you have so much data in its DOM.&lt;/p&gt;
&lt;p&gt;Perhaps you could consider querying only a portion of the table as necessary.&lt;/p&gt;</description></item><item><title>Form grinds to a halt after database look-up</title><link>https://www.infopathdev.com:443/forums/thread/33515.aspx</link><pubDate>Fri, 24 Oct 2008 19:37:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33515</guid><dc:creator>dprice_2000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=33515</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I have a form on which a user enters an employee number and a query brings back corresponding payroll information.&lt;br /&gt;The data resides in a single SQL Server table of about 5000 rows.&amp;nbsp; There are no indexes.&lt;br /&gt;I have created rules on the employee number field to look up the information using a secondary data source.&lt;br /&gt;The secondary data source is part of the form and not on a sharepoint site.&lt;/p&gt;
&lt;p&gt;After I enter the employee number it brings back the information correctly, but form grinds to a halt.&lt;br /&gt;Moving from field to field is&amp;nbsp;in slow-motion.&lt;br /&gt;When I submit the form, I get the following error:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt 0.5in;"&gt;&lt;font face="Calibri" size="3"&gt;Stop running this script?&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt 0.5in;"&gt;&lt;font face="Calibri" size="3"&gt;A script on this page is causing Internet Explorer to run slowly.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt 0.5in;"&gt;&lt;font face="Calibri" size="3"&gt;If it continues to run, your computer may become unresponsive.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt 0.5in;"&gt;&lt;font face="Calibri" size="3"&gt;Y/N&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Dave&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>