<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Closing InfoPath with Code</title><link>https://www.infopathdev.com:443/forums/thread/3488.aspx</link><pubDate>Thu, 16 Nov 2006 07:54:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3488</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3488</wfw:commentRss><description>Hi Deb,&lt;br /&gt;&lt;br /&gt;You need to modify the url of the sharepoint address in manifest.xsf file or you need to modify the data connection of the sharepoint.&lt;br /&gt;In code it will take the sharepoint address from manifest.xsf file only. You no need to change your code.</description></item><item><title>Re: Closing InfoPath with Code</title><link>https://www.infopathdev.com:443/forums/thread/3487.aspx</link><pubDate>Wed, 15 Nov 2006 18:18:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3487</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3487</wfw:commentRss><description>My data connections are already set up.  What I need to know is how to submit to those connections through code.  The code I pasted in the original post has the code I'm needing to modify.&lt;br /&gt;&lt;br /&gt;Thanks for your help!</description></item><item><title>Re: Closing InfoPath with Code</title><link>https://www.infopathdev.com:443/forums/thread/3486.aspx</link><pubDate>Wed, 15 Nov 2006 18:05:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3486</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3486</wfw:commentRss><description>Hi Deb,&lt;br /&gt;&lt;br /&gt;Can you get the more information to submit the form to sharepoint,&lt;br /&lt;a target="_blank" href=http://office.microsoft.com/en-us/infopath/HP011093021033.aspx&gt;http://office.microsoft.com/en-us/infopath/HP011093021033.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Can you get more information on email submit,&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3339&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3339&lt;/a&gt;</description></item><item><title>Closing InfoPath with Code</title><link>https://www.infopathdev.com:443/forums/thread/1665.aspx</link><pubDate>Wed, 15 Nov 2006 16:28:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1665</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1665.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1665</wfw:commentRss><description>Hello:&lt;br /&gt;&lt;br /&gt;I have the following code from the good people on the InfoPath Microsoft forum:&lt;br /&gt;{ &lt;br /&gt;if (XDocument.Errors.Count &amp;gt; 0)   &lt;br /&gt;{XDocument.UI.Alert("Required information is missing as indicated by the red asterisk(s).") ;   &lt;br /&gt;return;    &lt;br /&gt;} &lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;XDocument.Submit() &lt;br /&gt;Application.ActiveWindow.Close(true);&lt;br /&gt;}&lt;br /&gt;catch(e)&lt;br /&gt;{&lt;br /&gt;XDocument.UI.Alert(e.description);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I need it in order to close InfoPath after submit.  Is there any way to modify the Submit statement to submit to a specific data connection?  I have one submitting to email and the other submitting to a Sharepoint forms library.  I need to use this code, but specify which connection to use.&lt;br /&gt;&lt;br /&gt;Thanks so much!&lt;br /&gt;&lt;br /&gt;BTW, I'm not a programmer.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>