<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/80609.aspx</link><pubDate>Sun, 15 Jul 2012 04:45:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80609</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=80609</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Gennady Vanin (Геннадий Ванин, Новосибирск):&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Though, I cannot manage to succeed with this in Infopath 2010 getting:&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any idea?&lt;/p&gt;&lt;p&gt;From one side people write about its use, from another I asked it in social.technet.microsoft.com forum&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;&lt;a href="http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/61355d51-8df2-4e29-9ff3-f051928f4198" title="How to use &amp;quot;this.Save;&amp;quot; in Infopath 2010 Filler form? (always getting &amp;quot;The form does not have a file name&amp;quot; error)?"&gt;How to use &amp;quot;this.Save;&amp;quot; in Infopath 2010 Filler form? (always getting &amp;quot;The form does not have a file name&amp;quot; error)?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;and...&lt;/p&gt;&lt;p&gt;Has somebody ever used &amp;quot;this.Save();&amp;quot;?&lt;br /&gt;in which version(s), context(s), how? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/80422.aspx</link><pubDate>Tue, 10 Jul 2012 23:00:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80422</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80422.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=80422</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;joeyjackson:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Also when you say to move the rules to the form close event, how does one do that&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;If you have not created those rules, what I incur is yr case from your question, then you have nothing to move.&lt;br /&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;joeyjackson:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;How does one to this?&lt;br /&gt;&lt;br /&gt;When I add &amp;quot;this.save()&amp;quot; to the ClickedEventArgs of my button it tells me that &amp;quot;this&amp;quot; is not declared.&amp;nbsp; I&amp;#39;m missing something.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;First, it is not &amp;quot;&lt;b&gt;this.save()&lt;/b&gt;&amp;quot; but &lt;b&gt;&amp;quot;this.Save();&amp;quot;&lt;/b&gt; and it is in C# (note capital &amp;quot;S&amp;quot; and &amp;quot;;&amp;quot; at the end)&lt;br /&gt;You should use &lt;b&gt;IntelliSense&lt;/b&gt; in &lt;b&gt;VSTA&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Second, it is not argument but call of a method to be placed in the body of event handling method.&lt;br /&gt;I would again insist again your manual copy-pasting but instead generating the VSTA code by GUI using&lt;br /&gt;&lt;br /&gt;3d. if you have not changed your Programming Language then it will be Visual Basic.NET and you should have written &amp;quot;Me.Save()&amp;quot;&lt;/p&gt;&lt;p&gt;4th, it is, obviously, available only in Infopath Filler forms&lt;br /&gt;&lt;br /&gt;Though, I cannot manage to succeed with this in Infopath 2010 getting:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;InfoPath cannot save the form.&lt;br /&gt;The form does not have a file name.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocument.Save()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentWrapper.Save()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlFormHost.Save()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.XmlFormHostItem.Save()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at CS_client.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/80267.aspx</link><pubDate>Fri, 06 Jul 2012 09:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80267</guid><dc:creator>joeyjackson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=80267</wfw:commentRss><description>How does one to this?

When I add &amp;quot;this.save()&amp;quot; to the ClickedEventArgs of my button it tells me that &amp;quot;this&amp;quot; is not declared.  I&amp;#39;m missing something.

Also when you say to move the rules to the form close event, how does one do that.</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51321.aspx</link><pubDate>Tue, 02 Feb 2010 19:59:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51321</guid><dc:creator>dgaleano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51321</wfw:commentRss><description>&lt;p&gt;I knew it was not that difficult and it&amp;#39;s even easier with very helpful and kind people such as you.&lt;/p&gt;
&lt;p&gt;Now my form executes the rules and then it saves and closes using the custom code.&lt;/p&gt;
&lt;p&gt;Thanks Qazi Anis, &lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Diego&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51288.aspx</link><pubDate>Tue, 02 Feb 2010 07:16:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51288</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51288.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51288</wfw:commentRss><description>&lt;p&gt;for closing the application &lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.ActiveWindow.Close();&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51247.aspx</link><pubDate>Mon, 01 Feb 2010 15:01:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51247</guid><dc:creator>dgaleano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51247.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51247</wfw:commentRss><description>&lt;p&gt;You are right Qazi Anis, if the user does change something but don&amp;#39;t want to save it, he won&amp;#39;t even know that it has already been saved.&lt;/p&gt;
&lt;p&gt;The problem I saw with this.close is that since I&amp;#39;m using infopath, and not form services, the form gets closed but infopath remains open. I really didn&amp;#39;t like that behaivour.&lt;/p&gt;
&lt;p&gt;I guess&amp;nbsp;closing the application should not be difficult either, but I haven&amp;#39;t found the way to do it yet. (yes....you got it....I&amp;#39;m a newbie to infopath)&lt;/p&gt;
&lt;p&gt;Thanks for the advice....&lt;/p&gt;
&lt;p&gt;best regards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51244.aspx</link><pubDate>Mon, 01 Feb 2010 14:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51244</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51244.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51244</wfw:commentRss><description>&lt;p&gt;Saving on changed event might not be a good idea, because what if the user wants to undo his actions or doesnt even want to change any data. you can move all your rules into the saving event for closing the form &lt;/p&gt;
&lt;p&gt;this.close&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51240.aspx</link><pubDate>Mon, 01 Feb 2010 12:58:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51240</guid><dc:creator>dgaleano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51240</wfw:commentRss><description>&lt;p&gt;Hi, Qazi Anis.... &lt;/p&gt;
&lt;p&gt;Just a note...I used this.save(); on the button that has all the rules ending with the close rule and it didn&amp;#39;t work, then I realized that rules are executed before custom code&amp;nbsp; and the form closes before geting to the this.save();&lt;/p&gt;
&lt;p&gt;In my case the user had only one text field to modify so I placed the this.save() on the changed event of that field and all is ok.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51212.aspx</link><pubDate>Mon, 01 Feb 2010 05:13:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51212</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51212.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51212</wfw:commentRss><description>&lt;p&gt;Doing it using custom code is easy it is just&lt;/p&gt;
&lt;p&gt;this.save();&lt;/p&gt;
&lt;p&gt;as far as closing the form goes, the prompt to user funtionality is not available in broswer enabled forms.&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/51203.aspx</link><pubDate>Sat, 30 Jan 2010 14:34:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51203</guid><dc:creator>dgaleano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51203.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=51203</wfw:commentRss><description>&lt;p&gt;Hi &lt;strong&gt;TiltnSpill &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Have you been able to save without propmpting the user using rules? &lt;/p&gt;
&lt;p&gt;I need to do the same.&lt;/p&gt;
&lt;p&gt;Next week I&amp;#39;ll be trying to do it using custome code, since I&amp;#39;ve not been able to do it using rules.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/48983.aspx</link><pubDate>Thu, 12 Nov 2009 14:21:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48983</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48983.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=48983</wfw:commentRss><description>&lt;p&gt;Thanks for replying Frederik,&lt;/p&gt;
&lt;p&gt;Currently I have my forms setup like you have explained in your blog post. (to prompt the user to save on close.)&lt;/p&gt;
&lt;p&gt;I was hoping I had overlooked something and there was a way I could auto-save on close without the prompt! (just one less hoop for the end-user)&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/48978.aspx</link><pubDate>Thu, 12 Nov 2009 13:39:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48978</guid><dc:creator>Frederik Van Lierde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=48978</wfw:commentRss><description>&lt;p&gt;May be late, but please have a look at my blog post&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blueinfopath.wordpress.com/2009/11/12/how-to-add-save-action-to-a-button-no-code/"&gt;http://blueinfopath.wordpress.com/2009/11/12/how-to-add-save-action-to-a-button-no-code/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The fact is no action &amp;#39;Save As&amp;#39; exists to use with rules, but using the rules Close Form works the same way.&lt;br /&gt;To test it you need not to use &amp;#39;Preview&amp;#39; button in the dessigner, but save the InfoPath Template and open it.&lt;/p&gt;
&lt;p&gt;Everything is explained in the blog post&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/48268.aspx</link><pubDate>Tue, 27 Oct 2009 12:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48268</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=48268</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s for the reply Qazi,&lt;/p&gt;
&lt;p&gt;I did know about the save button on the form toolbar.&amp;nbsp; I was just hoping I could autosave to I don&amp;#39;t have step that could result in end-user error. But i&amp;#39;ll leave that part up to the trainers :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: "Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/48254.aspx</link><pubDate>Tue, 27 Oct 2009 05:31:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48254</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=48254</wfw:commentRss><description>&lt;p&gt;Hi TiltnSpill,&lt;/p&gt;
&lt;p&gt;As far as i know, infopath does not provide any such functionality to save the form on a button click. you can give users a toolbar on which you can give save functionality. to do so goto tools-&amp;gt;form options and check the save checkbox. now save will be listed on the tool bar at the top of the form.&lt;/p&gt;</description></item><item><title>"Save Action" in a button.</title><link>https://www.infopathdev.com:443/forums/thread/48238.aspx</link><pubDate>Mon, 26 Oct 2009 19:34:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48238</guid><dc:creator>TiltnSpill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48238.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=48238</wfw:commentRss><description>&lt;p&gt;Good afternoon,&lt;/p&gt;
&lt;p&gt;I currently building a role-based form in sharepoint.&amp;nbsp; It involves one person creating a request, and then a salesperson acting on the request.&lt;/p&gt;
&lt;p&gt;The first part is easy... the form initator saves the form to a document library,&amp;nbsp;I have sharepoint workflows that notify the salesperson to look at the form. The salesperson opens the form, makes changes and this is where i&amp;#39;m stuck.&lt;/p&gt;
&lt;p&gt;Right now I have an button that closes the form and prompts the user to Save.&amp;nbsp; I would like to know if it&amp;#39;s possible to not prompt the user and just save the form.&amp;nbsp; I&amp;#39;m afraid that some salespeople are going to click &amp;quot;no&amp;quot; and it&amp;#39;ll stop the workflows I have setup to run from the salesman&amp;#39;s changes.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;
&lt;p&gt;Do i have any options outside of adding code or submitting the file using the same name?&amp;nbsp; I&amp;#39;d rather not do the latter, because it would require me to redo my workflow triggers / naming convention for submitted forms. (i&amp;#39;m using the Now() function as part of the file name.)&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>