<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Error when submit edited Form via Code.</title><link>https://www.infopathdev.com:443/forums/thread/48441.aspx</link><pubDate>Fri, 30 Oct 2009 23:06:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48441</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48441</wfw:commentRss><description>&lt;p&gt;Hi -- it seems to me that the file name you are submitting would be the same as the name of the file you have open. In your submit connection, did you set the form to overwrite if there was an existing version with the same name?&lt;/p&gt;</description></item><item><title>Error when submit edited Form via Code.</title><link>https://www.infopathdev.com:443/forums/thread/48212.aspx</link><pubDate>Mon, 26 Oct 2009 11:07:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48212</guid><dc:creator>Sevenduster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48212.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48212</wfw:commentRss><description>&lt;p&gt;Hello Everybody. &lt;/p&gt;
&lt;p&gt;Normally i only read newsgroup-threads for solving my problems but in this case i did&amp;#39;t find anything similar to my problem.&lt;br /&gt;I have an Infopath-Form which submits itself via custom code to a document-library on a MOSS. &lt;br /&gt;In the library i click on new and fill out the form and submit it - everything works great.&lt;br /&gt;BUT- when i reopen the form for editing and try to submit it again i get a script error: (I try to translate it to english..)&lt;/p&gt;
&lt;p&gt;&amp;quot;The Form cannot be send to the location: &lt;a href="http://%7bmylibrary/"&gt;http://{myLibrary&lt;/a&gt;}. The file &amp;quot;{Filename}&amp;quot; is checked out by {domain\ME!} or it is locked for editing.&amp;quot;&lt;/p&gt;
&lt;p&gt;I checked on the server and the file is not checked out&amp;nbsp;even because checking out is not activated on this library.&lt;/p&gt;
&lt;p&gt;I submit&amp;nbsp;the form via custom code like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp;function XDocument::OnSubmitRequest(eventObj)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SubmitForm(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventObj.ReturnStatus = true; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (XDocument.Util.Match(XDocument.Solution.URI, &amp;quot;http://.*&amp;quot;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Application.Quit(true);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;} &lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;function SubmitForm(){ &lt;br /&gt;&amp;nbsp;&amp;nbsp; if (XDocument.Util.Match(XDocument.Solution.URI, &amp;quot;http://.*&amp;quot;)) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var Title = &amp;quot;Besuchsbericht&amp;quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (getNodeValue(&amp;quot;Besuchsthema&amp;quot;) == &amp;quot;Telefontermin&amp;quot;) Title= &amp;quot;Telefonbericht&amp;quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var FileName= Title + &amp;quot; bei &amp;#39;&amp;quot; + getNodeValue(&amp;quot;Firma1&amp;quot;) + &amp;quot;&amp;#39; (&amp;quot; + getNodeValue(&amp;quot;Kundennummer&amp;quot;) + &amp;quot;).xml&amp;quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.DataAdapters[&amp;quot;Versenden (Primär)&amp;quot;].FileName=FileName; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.DataAdapters[&amp;quot;Versenden (Primär)&amp;quot;].Submit();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/strong&gt; &amp;lt;-------------------------------------------------------------- This is where the exception occurs&lt;br /&gt;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Has anybody got an idea whats going on there? &lt;/p&gt;
&lt;p&gt;Thanks , Axel&lt;/p&gt;&lt;/blockquote&gt;</description></item></channel></rss>