<?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: Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52768.aspx</link><pubDate>Tue, 16 Mar 2010 14:18:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52768</guid><dc:creator>Dedek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52768.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52768</wfw:commentRss><description>&lt;p&gt;Well I see now :) &lt;/p&gt;
&lt;p&gt;So this will be&amp;nbsp;a problem, because I don&amp;#39;t know any way how to call &amp;quot;save&amp;quot; (with&amp;nbsp;same functionality as&amp;nbsp;standard&amp;nbsp;toolbar&amp;nbsp;save button has)&amp;nbsp;from codebehind. &lt;/p&gt;
&lt;p&gt;As a workaround you can use two submit connections (one for save&amp;nbsp;working copy&amp;nbsp;another for submitting&amp;nbsp;completed form). All your form fields&amp;nbsp;must&amp;nbsp;be&amp;nbsp;NON compulsory&amp;nbsp;(to &amp;#39;disable&amp;#39; data validation and allow&amp;nbsp;submit by first connection). Finally, when you are going to use second connection, you can validate all needed fields and raise validation errors if the&amp;#39;re blank.&lt;/p&gt;
&lt;p&gt;Anyway this is not the easy way and possibility to call this.Save() would be much more nicer.&lt;/p&gt;</description></item><item><title>Re: Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52764.aspx</link><pubDate>Tue, 16 Mar 2010 13:34:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52764</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52764</wfw:commentRss><description>&lt;p&gt;there is difference between saving a form and submitting a form, &lt;/p&gt;
&lt;p&gt;when we say saving it means Work In Progress copy. so it can contain validation errors. &lt;/p&gt;
&lt;p&gt;but when we say submit it means completed copy, it should not contain validation errors else it wont get submitted. &lt;/p&gt;
&lt;p&gt;that is why we cannot directly use a submit connection to save data&lt;/p&gt;</description></item><item><title>Re: Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52761.aspx</link><pubDate>Tue, 16 Mar 2010 12:28:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52761</guid><dc:creator>Dedek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52761</wfw:commentRss><description>&lt;p&gt;Saving form in managed code can be achieved by executing submit connection. I don&amp;#39;t understand why this is unappropriate solution for you? Before executing that submit connection you can change its FolderUrl property, so the form will be saved wherever you want to (into actual library for example).&lt;/p&gt;
&lt;p&gt;In loading event you can get url of actual opened form by: &lt;strong&gt;&lt;font size="2"&gt;e.InputParameters[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;XmlLocation&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].ToString();&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Than, you can set new Folder URL for you submit connection like this: &lt;strong&gt;&lt;font size="2"&gt;((&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;FileSubmitConnection&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)DataConnections[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;SharePointLibrarySave&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;]).FolderUrl = &amp;quot;myActualXmlLocationUrl&amp;quot;;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;Hope this helps.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52561.aspx</link><pubDate>Tue, 09 Mar 2010 08:38:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52561</guid><dc:creator>Kesava</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52561</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Qazi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;So is there any other method like this present for browser enabled forms? If not, then what is the other way round to save the form.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards&lt;/p&gt;&lt;p&gt;Kesava &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52553.aspx</link><pubDate>Tue, 09 Mar 2010 05:06:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52553</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52553</wfw:commentRss><description>&lt;p&gt;this.save()&lt;/p&gt;
&lt;p&gt;but this will not work for browser enabled forms&lt;/p&gt;</description></item><item><title>Calling save function in managed code</title><link>https://www.infopathdev.com:443/forums/thread/52536.aspx</link><pubDate>Mon, 08 Mar 2010 13:07:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52536</guid><dc:creator>Kesava</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52536</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, I want to save the form in managed code to save the changes the user did in the form. I dont want to execute a submit connection. Is there any method that I can user to achieve that.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am using infopath 2007 and moss 2007.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for replies in advance. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>