<?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: OnSubmitRequest</title><link>https://www.infopathdev.com:443/forums/thread/14199.aspx</link><pubDate>Fri, 15 Dec 2006 13:57:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14199</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14199</wfw:commentRss><description>Hi,&lt;br /&gt;the code above did not work for me, I think it happens, when you have more than one DataConnection.&lt;br /&gt;&lt;br /&gt;((DAVAdapter)thisXDocument.DataAdapters["Name of DataConnection"]).Submit();&lt;br /&gt;&lt;br /&gt;This code does the job for me just fine.&lt;br /&gt;&lt;br /&gt;hope this helps someone.&lt;br /&gt;joanfuture</description></item><item><title>Re: OnSubmitRequest</title><link>https://www.infopathdev.com:443/forums/thread/14198.aspx</link><pubDate>Thu, 12 Jan 2006 12:26:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14198</guid><dc:creator>sjc724</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14198</wfw:commentRss><description>Thank you both!</description></item><item><title>Re: OnSubmitRequest</title><link>https://www.infopathdev.com:443/forums/thread/14197.aspx</link><pubDate>Wed, 11 Jan 2006 21:26:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14197</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14197</wfw:commentRss><description>Here are the steps&lt;br /&gt;1. Add a button control.&lt;br /&gt;2. Double click on the button control and click on edit form code.&lt;br /&gt;3. Write code that you want.&lt;br /&gt;4. Now call "thisXDocument.Submit();"&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: OnSubmitRequest</title><link>https://www.infopathdev.com:443/forums/thread/14196.aspx</link><pubDate>Wed, 11 Jan 2006 18:43:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14196</guid><dc:creator>sandeep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14196</wfw:commentRss><description>Hi sjc724&lt;br /&gt;&lt;br /&gt;Check out these links and I think you will find an answer:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://office.microsoft.com/en-us/assistance/HA012073751033.aspx&gt;http://office.microsoft.com/en-us/assistance/HA012073751033.aspx&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdevtOnSubmitRequest_HV01021370.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdevtOnSubmitRequest_HV01021370.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sandeep&lt;br /&gt;InfoPath Dev India&lt;br /&gt;</description></item><item><title>OnSubmitRequest</title><link>https://www.infopathdev.com:443/forums/thread/12738.aspx</link><pubDate>Wed, 11 Jan 2006 16:03:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12738</guid><dc:creator>sjc724</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12738</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I want to add some code before the submit occurs so I changed my submit button from 'submit to web service' to 'custom submit using form code'.  I thought I could add my code in the OnSubmitRequest event and then call thisXDocument.Submit() but I get an IP error: 'XDocument.Submit cannot be called from the XDocument::OnSubmitRequest handler'.&lt;br /&gt;&lt;br /&gt;So, I have two questions; where should I call the submit method from, and is that all I need to do or do I have more manual work to do since I'm not using IP's default submit?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>