<?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: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/118988.aspx</link><pubDate>Sat, 12 May 2018 11:24:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118988</guid><dc:creator>azadeh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=118988</wfw:commentRss><description>hi 
where should I write this code</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/24826.aspx</link><pubDate>Fri, 30 Nov 2007 22:40:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24826</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24826</wfw:commentRss><description>&lt;p&gt;So many ways to do this with JS, but the easiest is to use the Application.IsDestinationReachable method to programatically see if the file already exists in SharePoint. Try this code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFileNameField = XDocument.DOM.selectSingleNode(&amp;quot;//fileNameField&amp;quot;).text;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myURL = &amp;quot;http://mySite/library/&amp;quot;+myFileNameField + &amp;quot;.xml&amp;quot;;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Application.IsDestinationReachable(myURL)) submitFormWithMySubmitConnection();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else XDocument.UI.Alert(&amp;quot;file name already exists&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You could also create a new data connection to the library to receive data from a SharePoint library or list and traverse the list to see if the file name already appears, but I think that&amp;#39;s a bit code heavy.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/24697.aspx</link><pubDate>Mon, 26 Nov 2007 17:55:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24697</guid><dc:creator>ben.oates</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24697</wfw:commentRss><description>&lt;p&gt;Hi Philippe,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if this will help, but if you allow SharePoint to control versions of&amp;nbsp;the documents on the list,&amp;nbsp;all the submissions will be stored under the same file name instead of being overwritten. This should make it easier to find things and you will still be able to see a history of the document, including who submitted it and when.&lt;/p&gt;
&lt;p&gt;Hopefully this will make things easier for you.&lt;/p&gt;</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/24484.aspx</link><pubDate>Thu, 15 Nov 2007 20:27:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24484</guid><dc:creator>huffe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24484</wfw:commentRss><description>&lt;p&gt;I am currently trying to do this however I keep getting the following error. I&amp;#39;m sure it is something in the data connections, and the &amp;quot;read-only&amp;quot; field that has been inserted into the form. Please advise if I inadvertantly missed something.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ERROR: &lt;/p&gt;
&lt;p&gt;InfoPath cannot submit the form.&lt;br /&gt;An error occurred while the form was being submitted.&lt;br /&gt;The form cannot be submitted to the following location: &lt;strong&gt;****&lt;/strong&gt;.com/forms/Travel Customer Service/Customer Service - test2007-11-15T14_02_28.xml&lt;br /&gt;The folder does not exist.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Lisa&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/10830.aspx</link><pubDate>Fri, 29 Dec 2006 07:27:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10830</guid><dc:creator>Mahitha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10830</wfw:commentRss><description>If you use GUID number as a file name for your form then , new form is created on every submit. You need to uncheck the check box "Allow Overwrite if file exists" in Data connection wizard.</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/10829.aspx</link><pubDate>Wed, 27 Dec 2006 15:37:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10829</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10829</wfw:commentRss><description>Hi,&lt;br /&gt;Thank you for your help, but I am afraid, it is not exactly the answer to my problem.&lt;br /&gt;&lt;br /&gt;My form has to meet two conditions:&lt;br /&gt;&lt;br /&gt;1. Avoid, that the new form will be saved with the same name as a form that already exists, because the old one would be overwritten.&lt;br /&gt;2. The form must be saved several times in its life (after signing through several people)&lt;br /&gt;&lt;br /&gt;I hope you can help me more.&lt;br /&gt;Best regards.&lt;br /&gt;Philippe</description></item><item><title>Re: Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/10828.aspx</link><pubDate>Wed, 27 Dec 2006 13:52:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10828</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10828</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;Take a data connection submitting to SharePoint library with 'File name' field insert the field that you want to display as file name. I did in the following way and it worked fine for me&lt;br /&gt;&lt;br /&gt;1.	Open InfoPath form in design mode &lt;br /&gt;2.	Take submit data connection to the share point library&lt;br /&gt;3.	Enter share point library name and insert the field that you want to display the file name in 'File Name' field&lt;br /&gt;4.	Click 'Next' and click 'finish'&lt;br /&gt;5.	On ‘Submit#%92 take the data connection and save the form&lt;br /&gt;</description></item><item><title>Avoid saving a form in SharePoint with same name</title><link>https://www.infopathdev.com:443/forums/thread/5984.aspx</link><pubDate>Wed, 27 Dec 2006 11:28:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5984</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5984.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5984</wfw:commentRss><description>Hi&lt;br /&gt;I have a form that I want to save in a SharePoint Form Library. The filename is built automatically with fields of the form.&lt;br /&gt;&lt;br /&gt;If the form is new, and the filename already exists, a warning should be prompted and the save-action should be interrupted. If the file is not new, it must be saved with the same name.&lt;br /&gt;&lt;br /&gt;I already tried to do it by submitting the form with a data connection. But I can only choose if the file can be overwriten or not. I need actually a conditional way.&lt;br /&gt;&lt;br /&gt;I use a button and code in JScript.&lt;br /&gt;&lt;br /&gt;Thank you for your help.&lt;br /&gt;&lt;br /&gt;Best regards.&lt;br /&gt;Philippe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>