<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to setup incremental file name calculation</title><link>https://www.infopathdev.com:443/forums/thread/41198.aspx</link><pubDate>Fri, 01 May 2009 06:34:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41198</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=41198</wfw:commentRss><description>&lt;p&gt;Hi Lenova27,&lt;/p&gt;
&lt;p&gt;This has to be one of the top 20 requests in this forum. I just answered a post yesterday regarding it. Bottom line is that you can&amp;#39;t do it because you can&amp;#39;t ensure that another person isn&amp;#39;t submitting at the same time. You could do a two submit solution. Submit once, but don&amp;#39;t close the form. Then, use a SharePoint list adapter to query the list, find the one you submitted, read the ID column and set that into your form. That works, but requires a double submit. Another option is to just use a GUID (global unique identifier) for your files name and incident number but they are long strings of characters and numbers and not very &amp;quot;friendly&amp;quot; to users. I&amp;#39;d go with the double submit for now. Will require adding a couple submits, a ShP data connection, and some rules to your form. Plus, when the list gets long, you will have performance issues when you filter the list to get the correct ID (you&amp;#39;ll need to filter using a unique identifier - try using a date time stamp for now). &lt;/p&gt;
&lt;p&gt;We&amp;#39;ve done this before. It would take about an hour to setup. If you want us to help you, we can do it, but you&amp;#39;ll need to purchase a &amp;quot;Support Pack&amp;quot;. Go to Qdabra.com -&amp;gt; Products -&amp;gt; Support - if you are interested. Otherwise, go for it. We&amp;#39;ll be here to answer questions in the forum as they arise.&lt;/p&gt;</description></item><item><title>How to setup incremental file name calculation</title><link>https://www.infopathdev.com:443/forums/thread/41192.aspx</link><pubDate>Thu, 30 Apr 2009 22:14:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41192</guid><dc:creator>lenovo27</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41192.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=41192</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Here is what I am looking to do:&lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I have an Incident Report form on my web enabled InfoPath form, which is published to a SharePoint site. When I submit the form, it submits the form and the data in it to the document library, with each field in the form showing up in columns in the library.&lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Right now I have it set up to concat the date and time to create an incident report number in the incident report # field on the form, and also use the incident report # as the file name when saving the form/file to the library.&lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I want to set it up a little differently now. What I want to do is have the form look in the document library, find the last incident report number, and increase it by one. &lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I originally did this through the rules, receive and submit data connections, etc. and had some success but not fully.&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Basically, I want to have the Incident Report # field on my web form to populate with the last incident report number found in the library, +1&lt;/font&gt;&lt;/font&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;So if my last incident report number saved in the library was 134, it would automatically populate the Incident report # field in my new form I want to submit to 135.&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>