﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 5/20/2013 12:42:49 AM-->
<?xml-stylesheet type="text/xsl" href="/blog/Vanessa/_layouts/RssXslt.aspx?List=b2ef5227-88ea-4cc8-86c8-4e602a104c85" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Vanessa Larsen's Blog: Posts</title>
    <link>http://www.myriadtech.com.au/blog/Vanessa/Lists/Posts/AllPosts.aspx</link>
    <description>RSS feed for the Posts list.</description>
    <lastBuildDate>Sun, 19 May 2013 14:42:49 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>Vanessa Larsen's Blog: Posts</title>
      <url>/blog/Vanessa/_layouts/images/homepage.gif</url>
      <link>http://www.myriadtech.com.au/blog/Vanessa/Lists/Posts/AllPosts.aspx</link>
    </image>
    <item>
      <title>Creating a Re-submit button</title>
      <link>http://www.myriadtech.com.au/blog/Vanessa/Lists/Posts/ViewPost.aspx?ID=15</link>
      <description><![CDATA[<div><b>Body:</b> <div class=ExternalClass722D3633869445C98E9A286D5AD7FE8A>
<p>To save and resubmit an InfoPath form, certain logic can be implemented in the form to allow this to happen. </p>
<p><span style="font-size:14pt"><strong>Saving a form </strong></span></p>
<p>Saving a form involves setting the Submit Data Connection to overwrite the existing file. </p>
<p>At this point I also generally concatenate a unique name for the form using some fields in the form schema. For example, an Expense Claim form may use the following logic to save with a meaningful name: </p>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe1.png"> </p>
<p>I am using a 'DateSubmitted' field in the form name. This field is set to use the now() function when the form is opened for the first time. Notice that the 'Refresh value when formula is re-calculated' checkbox is unchecked – this is so the date field does not update unless we tell it to. </p>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe2.png"> </p>
<p>You can now add a Submit or Save button to your form, or save a previously submitted form: </p>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe3.png"> </p>
<p><span style="font-size:14pt"><strong>Resubmitting a form </strong></span></p>
<p>A form can also be 'Resubmitted', allowing the user to avoid re-entering data that is identical to an existing form. This can be achieved by setting form logic around a 'Resubmit' button. </p>
<ol>
<li>Add the 'Resubmit' button to the relevant view </li></ol>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe4.png"> </p>
<ol>
<li>Add a rule to update the 'DateSubmitted' field to use the now() function: </li></ol>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe5.png"> </p>
<ol>
<li>When the user submits, the form will be submitted as a new form, because the name of the form has changed, and thereby 're-starting' any workflows you may have appended to the form library to correspond with your business processes. </li></ol>
<p><img alt="" src="/blog/Vanessa/Lists/Photos/092111_1300_CreatingaRe6.png"></p></div></div>
<div><b>Category:</b> InfoPath 2010</div>
<div><b>Published:</b> 9/21/2011 10:47 PM</div>
]]></description>
      <author>Vanessa Larsen</author>
      <category>InfoPath 2010</category>
      <pubDate>Wed, 21 Sep 2011 12:47:35 GMT</pubDate>
      <guid isPermaLink="true">http://www.myriadtech.com.au/blog/Vanessa/Lists/Posts/ViewPost.aspx?ID=15</guid>
    </item>
  </channel>
</rss>