<?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: Overwriting infopath filename in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/23579.aspx</link><pubDate>Tue, 09 Oct 2007 20:36:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23579</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=23579</wfw:commentRss><description>&lt;p&gt;No worries, it looks like I&amp;#39;ve stumped the great minds here yet again. &lt;/p&gt;
&lt;p&gt;I got the code from Patricks book which I think is available somewhere on this site. It&amp;#39;s called Developing Solutions with Infopath and is a great read.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Place this in an onload procedure (it&amp;#39;s in VB)&lt;/p&gt;
&lt;p&gt;If Not thisXDocument.IsNew Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Submit As DAVAdapter&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Submit = thisXDocument.DataAdapters.Item(&amp;quot;Main submit&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If thisXDocument.URI.StartsWith(Submit.FolderURL) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thisFilename = thisXDocument.URI.Substring(Submit.FolderURL.Length)&lt;br /&gt;End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;In order for it to work you will need to declare thisFilename as a public variable&lt;/p&gt;
&lt;p&gt;To call it onSubmit,&lt;/p&gt;
&lt;p&gt;Dim Submit As DAVAdapter&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Submit = thisXDocument.DataAdapters.Item(&amp;quot;Main submit&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If thisFilename Is Nothing Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thisFilename = Submit.FileName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/p&gt;
&lt;p&gt;Submit.Submit()&lt;br /&gt;e.ReturnStatus = True&lt;/p&gt;
&lt;p&gt;For this portion to work your submit data connection must be named &amp;quot;Main submit&amp;quot; and it is case sensitive. Hope this helps!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Overwriting infopath filename in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/23453.aspx</link><pubDate>Thu, 04 Oct 2007 15:24:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23453</guid><dc:creator>grahamC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=23453</wfw:commentRss><description>&lt;p&gt;Sorry to take this thread slightly off topic, but you mention in your post &amp;quot;patricks excellent tip for captruing the filename on load&amp;quot;. Would you mind sharing how to do this please or providing a link. Please PM if you dont want to post on here and take the thread too far off topic. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks&lt;/p&gt;</description></item><item><title>Overwriting infopath filename in SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/23370.aspx</link><pubDate>Mon, 01 Oct 2007 23:25:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23370</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=23370</wfw:commentRss><description>&lt;p&gt;I have an order tracking form. The form file name uses the customer name. If a user submits a form then comes back and changes the customer, a new file is created. I would like the existing file name to be updated if part of the file name is changed. Is this possible? I am currently using Patrick&amp;#39;s excellent tip from his book on how to capture the file name on load and use it on submit but like I mentioned before, I need to be able to update the file name without creating a new record. Any help would be greatly appreciated. Thanks!&lt;/p&gt;</description></item></channel></rss>