<?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: Need help with custom submit button</title><link>https://www.infopathdev.com:443/forums/thread/49115.aspx</link><pubDate>Mon, 16 Nov 2009 19:12:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49115</guid><dc:creator>KarenSL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49115</wfw:commentRss><description>&lt;p&gt;I got&amp;nbsp;this working. &amp;nbsp;I used this article as the guideline: &lt;a href="http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm"&gt;http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In a nutshell the only code I needed to do&amp;nbsp;for the submit (this is VB so no semicolons at the end):&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Submit the form to SharePoint - &amp;quot;Main Submit&amp;quot; is the name of the submit datasource used in my form&lt;br /&gt;Dim spConn As DataConnection = DataConnections(&amp;quot;Main Submit&amp;quot;)&lt;br /&gt;spConn.Execute()&lt;br /&gt;&amp;#39;If the submit operation is successful, set&lt;br /&gt;e.CancelableArgs.Cancel = False&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps someone.&lt;/p&gt;
&lt;p&gt;Karen.&lt;/p&gt;</description></item><item><title>Re: Need help with custom submit button</title><link>https://www.infopathdev.com:443/forums/thread/48772.aspx</link><pubDate>Sat, 07 Nov 2009 04:42:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48772</guid><dc:creator>KarenSL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48772.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48772</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;yeah, I went down that path too and I couldn&amp;#39;t see another way about it.&amp;nbsp; The code is setting flags and a counter for the row that was just updated to lock it down when it&amp;#39;s been updated so people can&amp;#39;t go backwards or screw up the sequence of the department routing.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Need help with custom submit button</title><link>https://www.infopathdev.com:443/forums/thread/48771.aspx</link><pubDate>Sat, 07 Nov 2009 03:46:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48771</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48771</wfw:commentRss><description>&lt;p&gt;To start off, do you really need code in your button to perform the actions you&amp;#39;re performing with it?&amp;nbsp; Can it absolutely not be done without code?&lt;/p&gt;</description></item><item><title>Need help with custom submit button</title><link>https://www.infopathdev.com:443/forums/thread/48770.aspx</link><pubDate>Sat, 07 Nov 2009 02:50:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48770</guid><dc:creator>KarenSL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48770</wfw:commentRss><description>&lt;p&gt;I have a form with a button running rules to submit my form to a SP library and close my form.&amp;nbsp; Then I added some code to that same button to do some other stuff...this was before I found out that rules run before code.&amp;nbsp; Now I assume that I need to remove those rules and have the submit done at the end of the code, but I can&amp;#39;t find what exactly I need in the code to do this.&amp;nbsp; I have a data connection for a submit setup (called Main Submit).&amp;nbsp; I&amp;#39;m coding in VB and I know next to nothing about how to go about&amp;nbsp;coding the submit and close the form.&amp;nbsp; Everything I&amp;#39;ve found on the topic is in piecemeal and I can&amp;#39;t get the whole puzzle together.&lt;/p&gt;
&lt;p&gt;Other details that may make a difference: browser-enabled form, Infopath 2007, and MOSS 2007&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>