<?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: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15059.aspx</link><pubDate>Wed, 31 Jan 2007 08:15:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15059</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15059</wfw:commentRss><description>Sorry, I didn't respond to your real question! Thanks David.</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15058.aspx</link><pubDate>Wed, 31 Jan 2007 08:11:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15058</guid><dc:creator>happydigit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15058</wfw:commentRss><description>Thanks a lot, I found it too, yesterday.&lt;br /&gt;thx!!&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by davidair&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Patrick has a good point of avoiding using code, but doing a submit from code is actually pretty simple. First, make sure you've got Submit configured, then, in your code, simply write:&lt;br /&gt;&lt;br /&gt;this.Submit()&lt;br /&gt;&lt;br /&gt;Let me know if this helped.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15057.aspx</link><pubDate>Wed, 31 Jan 2007 00:51:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15057</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15057</wfw:commentRss><description>Patrick has a good point of avoiding using code, but doing a submit from code is actually pretty simple. First, make sure you've got Submit configured, then, in your code, simply write:&lt;br /&gt;&lt;br /&gt;this.Submit()&lt;br /&gt;&lt;br /&gt;Let me know if this helped.</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15056.aspx</link><pubDate>Tue, 30 Jan 2007 18:57:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15056</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15056</wfw:commentRss><description>Hi HappyDigit,&lt;br /&gt;First off: you don't need any code and I recommend against it. If you have code on InfoPath Form Server it will require an admin install, which is a pain and not worth the trouble if you can avoid it, which you can. However, for InfoPath 2007 and InfoPath Form Server - assuming you are running these as browser forms - you will want to create a UDC for them. Search the Microsoft Team Blog for UDC (see a link to their block under our Resources tab) and there's a good post there. I also have a document I can send you. David Airapetyan worked on Form Server and has lots of insights too if you have more trouble.</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15055.aspx</link><pubDate>Tue, 30 Jan 2007 15:47:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15055</guid><dc:creator>happydigit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15055</wfw:commentRss><description>Yes, I know but  don't know the code I have to write to start the submit process! ;)</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15054.aspx</link><pubDate>Tue, 30 Jan 2007 09:33:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15054</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15054</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Double click on the "Save" button and Click on "Edit Form Code", it will go to code view(If you use Visual studio it will go to Formcode.cs or if you scripting it will go to scripting editor(.js or .vbs).&lt;br /&gt;Then you can start the write code there.&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15053.aspx</link><pubDate>Tue, 30 Jan 2007 07:44:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15053</guid><dc:creator>happydigit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15053</wfw:commentRss><description>Hmm, this was a question!&lt;br /&gt;&lt;br /&gt;Once again: &lt;b&gt;How can I start &lt;/b&gt;the submit process via code in a event handler which is on a button. I do not speak from the InfoPath Toolbar Buttons in the Ribbon. I put a own button named "Save" on the form.&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by K.Ramana Reddy&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;yes,when you click on "Submit" button,it will start to submit your form to share point document library, whcih is defined in Infopath GUI.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Using &amp;quot;Submit&amp;quot; via Code</title><link>https://www.infopathdev.com:443/forums/thread/15052.aspx</link><pubDate>Tue, 30 Jan 2007 07:13:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15052</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15052</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;yes,when you click on "Submit" button,it will start to submit your form to share point document library, whcih is defined in Infopath GUI.&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Using "Submit" via Code</title><link>https://www.infopathdev.com:443/forums/thread/13042.aspx</link><pubDate>Mon, 29 Jan 2007 17:50:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13042</guid><dc:creator>happydigit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13042</wfw:commentRss><description>Hello All,&lt;br /&gt;&lt;br /&gt;I have an InfoPath web-browser enabled form and I want to use the "submit-function" in InfoPath to store the form in a SharePoint Document Library.&lt;br /&gt;&lt;br /&gt;So far, I know (and it works :-) I can use the submit-options in InfoPath via the GUI. But actually it is recommended using some code for creating the filename. The filename would be providing through a web service.&lt;br /&gt;&lt;br /&gt;The web service writes the filename in a InfoPath field. All fine, but how can I start the submitting process via code in InfoPath 2007? No problem to use the "Main Submit" data connection. Important is, that the submit-process only starts if I click on my button. The only think I want to start with click on my button is to start the submitting process which is defined with InfoPath GUI.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>