<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Custom Code Save &amp; close Button, or another alternative</title><link>https://www.infopathdev.com:443/forums/thread/86451.aspx</link><pubDate>Fri, 25 Jan 2013 20:57:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86451</guid><dc:creator>dkmccain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86451</wfw:commentRss><description>Hi Hilary, sorry for the delay in reply.  It is being opened in the form filler.  The form is actually locked by yourself.  So whenever I open the form from the email link and attempt to re-submit it it give me the error that the form is currently checked out by me!!</description></item><item><title>Re: Custom Code Save &amp; close Button, or another alternative</title><link>https://www.infopathdev.com:443/forums/thread/86233.aspx</link><pubDate>Mon, 21 Jan 2013 15:48:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86233</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86233</wfw:commentRss><description>Is the form being opened in browser or filler? I&amp;#39;m wondering about the link in the workflow email - who is the form supposededly locked by when the user tries to open from the link?</description></item><item><title>Custom Code Save &amp; close Button, or another alternative</title><link>https://www.infopathdev.com:443/forums/thread/86130.aspx</link><pubDate>Wed, 16 Jan 2013 22:57:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86130</guid><dc:creator>dkmccain</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86130.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86130</wfw:commentRss><description>I am creating a form that uploads to a sharepoint form library.  The form upload is working perfectly, I create a unique identifier based on concatenating user entered data &amp;amp; the Sharepoint ID.  The submit button will create one unique filename that will always remain constant.  My problem comes from the workflow through Sharepoint.  I created workflow that sends emails with links to the documents.  This works fine except whenever trying to submit the form to the library again.  I then get the below error (private information removed):

InfoPath cannot submit the form.
An error occurred while the form was being submitted.
The form cannot be submitted to the following location: http://(Navigation)/testing16.xml
The file &amp;quot;Informatics Data Requests/testing16.xml&amp;quot; is checked out or locked for editing by DOMAIN\User.
The operation completed successfully.

So basically I cannot re-submit my form if I open it from the workflow email (which for my end users will be a requirement).  I have also validated that document check out is not a requirement on my form library.  I figured out that by using the save feature I can save the form and it will update the Sharepoint Library.  I want this to be on a custom button instead of the delivered save feature as I do not want to confuse my end users about which they should use and when.  I have also looked at adding a button with only the close feature that prompts the end user to save, but I would rather have it save and close automatically instead of additional clicks.  I have tried 

this.save() ;
this.Application.ActiveWindow.Close();

with no success so far.  I am open to other options but I want it to be seamless to my end users so they always think they click the button at the bottom of the form.

Any help you can provide would be great.

Thanks,
Dustin</description></item></channel></rss>