<?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: Submitting to sharepoint library using vb code</title><link>https://www.infopathdev.com:443/forums/thread/25335.aspx</link><pubDate>Fri, 28 Dec 2007 23:15:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25335</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25335</wfw:commentRss><description>&lt;p&gt;I believe this is due to the order in which rules and onload code runs.&lt;/p&gt;
&lt;p&gt;All you have to do is add a rule on open that does the submit and you will have it.&amp;nbsp; I have done this several times with SharePoint and never had an issue with submiting.&lt;/p&gt;
&lt;p&gt;Then you can also have a rule which runs the query for the date and populates a field or whatever.&lt;/p&gt;</description></item><item><title>Submitting to sharepoint library using vb code</title><link>https://www.infopathdev.com:443/forums/thread/25333.aspx</link><pubDate>Fri, 28 Dec 2007 20:47:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25333</guid><dc:creator>barmatt80</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25333</wfw:commentRss><description>&lt;p&gt;I am creating forms in infopath 2007, that are backwards compatible with 2003.&amp;nbsp; I am needing to submit the form to sharepoint when the form is opened after the initial creation of the document.&amp;nbsp; I tried doign it by going to form options under tools, but i was given an error that the form cannot be submitted because it has not finished loading.&amp;nbsp; What is a way around this?&amp;nbsp; the main reason why i need this is that I need the modified(date) column within the document library on moss to update to the current time that the form was opened each time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I tried using code to do it using code similar to this:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; sharepointSubmit &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DAVAdapter = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;DirectCast&lt;/font&gt;&lt;font size="2"&gt;(thisXDocument.DataAdapters(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;SUBMIT_SHAREPOINT&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;), DAVAdapter)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;sharepointSubmit.Submit()&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but it gives me the same error.&amp;nbsp; is that code for something else or is my use to submit to my library correct?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>