<?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: submit to data connection and email problem</title><link>https://www.infopathdev.com:443/forums/thread/14352.aspx</link><pubDate>Fri, 03 Mar 2006 20:43:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14352</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14352</wfw:commentRss><description>Hi Mario,&lt;br /&gt;You need to convert the Adapter into apropriate type and then call "Submit" on that.&lt;br /&gt;&lt;br /&gt;For ex: If it is a Webservice adapter&lt;br /&gt;WebserviceAdapter2 xyz = (WebserviceAdapter2)thisXdocument.DataAdapters("Whatever")&lt;br /&gt;xyz.Submit()&lt;br /&gt;&lt;br /&gt;Similarly for all the "Adapters" you need to convert to its actual type and then call submit on that object.&lt;br /&gt;</description></item><item><title>submit to data connection and email problem</title><link>https://www.infopathdev.com:443/forums/thread/12798.aspx</link><pubDate>Fri, 03 Mar 2006 20:05:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12798</guid><dc:creator>Mario</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12798</wfw:commentRss><description>1st of all, YES, I've done the search in the forums. &lt;br /&gt;&lt;br /&gt;I want to submit a form to a couple of data connections&lt;br /&gt;on my form and through email.  My email code works great (also found using the search):&lt;br /&gt;&lt;br /&gt;Code is vb.net&lt;br /&gt;&lt;br /&gt;Dim oemail As EmailAdapter&lt;br /&gt;oemail = thisXDocument.DataAdapters.Item("SubmittoMgr")&lt;br /&gt;oemail.Submit()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Most of the examples I have found indicate this should work for submitting to a data connection:&lt;br /&gt;&lt;br /&gt;thisXdocument.DataAdapters("Whatever").Submit&lt;br /&gt;&lt;br /&gt;however, I don't even see the .submit method of dataadapter, I also tried&lt;br /&gt;&lt;br /&gt;thisXdocument.DataAdapters.Item("Whatever").Submit&lt;br /&gt;&lt;br /&gt;I only see "Get Type" and "Count", no submit method of dataadapter&lt;br /&gt;&lt;br /&gt;Am I missing a Imports, Namespace??? &lt;br /&gt;&lt;br /&gt;Any help appreciated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>