<?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: Data connection to generate =max(@ID)+1 form number inhibiting performance</title><link>https://www.infopathdev.com:443/forums/thread/76154.aspx</link><pubDate>Wed, 07 Mar 2012 01:00:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76154</guid><dc:creator>s3ttt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=76154</wfw:commentRss><description>&lt;p&gt;I would still like to know if anyone has any thoughts on why this type of data connection so significantly decreases performance...but I came up with a half workaround by completely eliminating the data connection. &amp;nbsp; &lt;/p&gt;&lt;p&gt;Here was my formula to generate a random number.&lt;/p&gt;&lt;p&gt;Step 1:&amp;nbsp; number(concat(substring(string(today()), 6, 2), substring(string(today()), 9, 2))) &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This formula will return the month and day so 3-06-2012 is returned as a number (not a date) as 306.&lt;/p&gt;&lt;p&gt;Step 2:&amp;nbsp; string-length(CreatedBy) * Step 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This formula multipled the previous monthday number by the number of characters in someone&amp;#39;s name. &lt;/p&gt;&lt;p&gt;I then would have to save the file by the new form number + now().&lt;/p&gt;&lt;p&gt;I&amp;#39;m going to keep working on Step 2 to perhaps multiply that number by another field of random length so that the same person on the same day won&amp;#39;t have duplicate form numbers. &amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Data connection to generate =max(@ID)+1 form number inhibiting performance</title><link>https://www.infopathdev.com:443/forums/thread/76152.aspx</link><pubDate>Wed, 07 Mar 2012 00:17:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76152</guid><dc:creator>s3ttt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=76152</wfw:commentRss><description>&lt;p&gt;Background: This form library is large.&amp;nbsp; Users enter a high number of forms in a row many times a day.&amp;nbsp; Within 1 year you can expect to have about 8,000 records, which then closes the library.&amp;nbsp; Because of the large number of records, the default SharePoint view for the list needs to be grouped and limited to only recent records.&amp;nbsp; I do prefer to simply use now() as a unique form identifier; however, because of the frequency of use the form number was added for readability and to ensure there were no duplicates from now().&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:4.5pt 0in 0.0001pt;"&gt;Originally I simply made a data connection using max(@ID)+1, but this stopped working or was having issues with the grouped view.&amp;nbsp; I made a custom form number view using an XML data connection &lt;span style="font-size:8pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;border:1pt none windowtext;padding:0in;"&gt;http://blogs.msdn.com/b/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx&lt;/span&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx" title="http://blogs.msdn.com/b/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx" target="_blank"&gt;&lt;span style="font-size:8pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;border:1pt none windowtext;padding:0in;"&gt; &lt;/span&gt;&lt;/a&gt;to a custom list view. &lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:4.5pt 0in 0.0001pt;"&gt;However, now my form is having performance issues.&amp;nbsp; It takes approximately 50 seconds for a form to open where as before it was taking around 8.&amp;nbsp; This now makes the form unusable.&amp;nbsp; &lt;/p&gt;&lt;p class="MsoNormal" style="margin:4.5pt 0in 0.0001pt;"&gt;The form number appears in a field when the form is opened and not just when the form is submitted. &amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:4.5pt 0in 0.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:4.5pt 0in 0.0001pt;"&gt;I must use a codeless solution.&amp;nbsp; The form number CAN be random and form numbers don&amp;#39;t need to go in numerical order...although that&amp;#39;s nice.&amp;nbsp; Am I left with formula options like counting the characters in someone&amp;#39;s name and then dividing now by that number to generate a random number?&lt;br /&gt;&lt;/p&gt;

&amp;nbsp;</description></item></channel></rss>