<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submitting to InfoPath W/O Creating New form</title><link>https://www.infopathdev.com:443/forums/thread/10676.aspx</link><pubDate>Sun, 19 Nov 2006 14:03:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10676</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10676</wfw:commentRss><description>Neither of those help me.  I'm sorry.  I don't know how to construct this logic.  The logic from Patrick's book is what I need, but I can't get that to work, so I just need a little help with that specific code.</description></item><item><title>Re: Submitting to InfoPath W/O Creating New form</title><link>https://www.infopathdev.com:443/forums/thread/10675.aspx</link><pubDate>Fri, 17 Nov 2006 18:27:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10675</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10675</wfw:commentRss><description>Hi Deb,&lt;br /&gt;&lt;br /&gt;Check out these links and I think you will find an answer:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://office.microsoft.com/en-us/infopath/HA012073751033.aspx&gt;http://office.microsoft.com/en-us/infopath/HA012073751033.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://msdn2.microsoft.com/en-us/library/aa662351&gt;http://msdn2.microsoft.com/en-us/library/aa662351&lt;/a&gt;(office.11).aspx</description></item><item><title>Submitting to InfoPath W/O Creating New form</title><link>https://www.infopathdev.com:443/forums/thread/5925.aspx</link><pubDate>Fri, 17 Nov 2006 16:45:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5925</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5925</wfw:commentRss><description>TO Patrick:&lt;br /&gt;&lt;br /&gt;In the "Using Code to Control the Sharepoint Submit Data Connection" section of your book you describe how to code a solution so that saving an existing form from a Sharepoint forms library will overwrite the existing one rather than creating a new one.&lt;br /&gt;&lt;br /&gt;I don't have Visual Studio, so am using the InfoPath editor.  I have created this code:&lt;br /&gt;&lt;br /&gt;function XDocument::OnSubmitRequest(eventObj)&lt;br /&gt;{&lt;br /&gt;Dim submit As DAVAdapter&lt;br /&gt;submit = thisXDocument.DataAdapters.Item("Submit")&lt;br /&gt;If thisFilename Is Nothing Then&lt;br /&gt;	thisFilename = submit.FileName&lt;br /&gt;End If&lt;br /&gt;submit.FileName = thisFileName&lt;br /&gt;submit.Submit()&lt;br /&gt;e.ReturnStatus = True&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I guess there is something different I must do for the InfoPath editor because this code generates an error at the first Dim statement.  I also tried completing step 11, which was to add the statement "Private thisFileName As String" to the "code just above the OnSubmitRequest event handler.  That also generates an error.&lt;br /&gt;&lt;br /&gt;I would be very appreciate of any help to creating this solution.&lt;br /&gt;&lt;br /&gt;One other problem with this solution, though, is that I have "Submit with Rules" chosen.  Your instructions say to "Submit with Code."  If I chose Rules, will it then go to the code to look at the OnSubmitRequest handler?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>