<?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: Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33882.aspx</link><pubDate>Tue, 04 Nov 2008 23:44:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33882</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33882</wfw:commentRss><description>&lt;p&gt;Actually, I got this to work, using your code on a blank form. I had to be sure that the URL pointed to the library I wanted to save in, so &lt;a href="http://server/site/library"&gt;http://server/site/library&lt;/a&gt; worked, but &lt;a href="http://server/site/library/forms/allitems.aspx"&gt;http://server/site/library/forms/allitems.aspx&lt;/a&gt; did not. Experiment with the URL you are using as a path in&amp;nbsp;the SetSaveAsDialogLocation method.... oh, and I saved to a regular document library, not a form library.....&lt;/p&gt;</description></item><item><title>Re: Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33879.aspx</link><pubDate>Tue, 04 Nov 2008 21:57:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33879</guid><dc:creator>dfxdeimos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33879</wfw:commentRss><description>&lt;p&gt;Anyone have any ideas?&lt;/p&gt;</description></item><item><title>Re: Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33824.aspx</link><pubDate>Mon, 03 Nov 2008 21:40:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33824</guid><dc:creator>dfxdeimos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33824</wfw:commentRss><description>&lt;p&gt;I think I may be on the right path, but I am still having some issues. Somone helped me write the following custom save code, but when I try to save the form it still defaults to the user&amp;#39;s Documents. Can anyone see a problem with the code below?&lt;/p&gt;&lt;pre class="prettyprint" id="codeSnippet183988"&gt;&lt;em&gt;/*
 * This file contains functions for data validation and form-level events.
 * Because the functions are referenced in the form definition (.xsf) file, 
 * it is recommended that you do not modify the name of the function,
 * or the name and number of arguments.
 *
*/
 
// The following line is created by Microsoft Office InfoPath to define the prefixes
// for all the known namespaces in the main XML data file.
// Any modification to the form template files made outside of InfoPath
// will not be automatically updated.
//&amp;lt;namespacesDefinition&amp;gt;
XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot; xmlns:tns=&amp;quot;http://contoso.com/&amp;quot; xmlns:http=&amp;quot;http://schemas.xmlsoap.org/wsdl/http/&amp;quot; xmlns:soap12=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap12/&amp;quot; xmlns:mime=&amp;quot;http://schemas.xmlsoap.org/wsdl/mime/&amp;quot; xmlns:soapenc=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; xmlns:tm=&amp;quot;http://microsoft.com/wsdl/mime/textMatching/&amp;quot; xmlns:soap=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap/&amp;quot; xmlns:wsdl=&amp;quot;http://schemas.xmlsoap.org/wsdl/&amp;quot; xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-12-04T16:19:23&amp;quot; xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;&amp;#39;);
//&amp;lt;/namespacesDefinition&amp;gt;
 
 
//=======
// The following function handler is created by Microsoft Office InfoPath.
// Do not modify the name of the function, or the name and number of arguments.
//=======
function XDocument::OnLoad(eventObj)
{
	try
	{
		var CreateAccountData = XDocument.DataObjects[&amp;quot;CreateAccount&amp;quot;];
		var CreateAccountAdapter = CreateAccountData.QueryAdapter;
		CreateAccountAdapter.Timeout = 120;
	}
	catch(e)
	{
		// Do nothing currently.
	}
}
 
//=======
// Die folgende Handlerfunktion wurde von Microsoft Office InfoPath erstellt.
// Der Funktionsname und die Anzahl und Namen der Argumente dürfen nicht geändert werden.
//=======
function XDocument::OnSaveRequest(eventObj)
{
	// Erstellen Sie hier den Code, der vor dem Speichern ausgeführt werden soll.
	
	//Set Save As location
	XDocument.UI.SetSaveAsDialogLocation(&amp;quot;http://intranet.mycompany.com/Departments/Personel/Forms/FormLibrary/&amp;quot;);
 
	//Perform SAVE function 
	eventObj.IsCancelled = eventObj.PerformSaveOperation();
	
 
	// Erstellen Sie hier den Code, der nach dem Speichern ausgeführt werden soll.
 
	eventObj.ReturnStatus = true;
 
}&lt;/em&gt;&lt;/pre&gt;</description></item><item><title>Re: Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33813.aspx</link><pubDate>Mon, 03 Nov 2008 17:36:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33813</guid><dc:creator>dfxdeimos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33813</wfw:commentRss><description>&lt;p&gt;As mentioned in my post I am not interested in solutions that use a &amp;quot;Submit&amp;quot; function.&lt;/p&gt;
&lt;p&gt;I just need to know if this is possible to do with a &amp;quot;Save&amp;quot; function.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33770.aspx</link><pubDate>Sun, 02 Nov 2008 23:59:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33770</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33770</wfw:commentRss><description>&lt;p&gt;Hey there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To qualify a &amp;quot;submit&amp;quot; to SharePoint for instance is the same as a save.&amp;nbsp; The XML document is saved to a&amp;nbsp;Form Library.&lt;/p&gt;
&lt;p&gt;Best practice is to use a submit since then you can control where and how it is named rather than depending on the user to do this right or to take the time.&lt;/p&gt;
&lt;p&gt;If you use the toolbar they can both be a button.&lt;/p&gt;
&lt;p&gt;Otherwise have a button in your form and label it save.&lt;/p&gt;
&lt;p&gt;You can use code to set a save location and name but this increases the complexity and may cause trust issues.&lt;/p&gt;
&lt;p&gt;Why are you worried about submit vs. save?&lt;/p&gt;</description></item><item><title>Default Save Location</title><link>https://www.infopathdev.com:443/forums/thread/33757.aspx</link><pubDate>Fri, 31 Oct 2008 23:09:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33757</guid><dc:creator>dfxdeimos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33757</wfw:commentRss><description>&lt;p&gt;Hello all.&lt;/p&gt;
&lt;p&gt;I did a search before posting this and saw several topics that were related, however in all of them the poster shifted the topic from saving to submitting and I wanted to get a concrete answer.&lt;/p&gt;
&lt;p&gt;Can you set a default save location either in InfoPath or in a specific form WITHOUT using a submit button?&lt;/p&gt;
&lt;p&gt;A &amp;quot;no&amp;quot; is fine, but to be clear I am not looking for answers that suggest using a submit button.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item></channel></rss>