<?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>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/89719.aspx</link><pubDate>Tue, 14 May 2013 07:43:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89719</guid><dc:creator>luke20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=89719</wfw:commentRss><description>Hi i have a rule on the submit button which querys the data connection and then sets the ref number and submits. I know what you mean but after testing the form, i have submitted two at the same time, left one form open while filling out another etc and it works perfectly. Thanks for your other suggestion though will remember that for the next time :)</description></item><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/89694.aspx</link><pubDate>Mon, 13 May 2013 17:00:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89694</guid><dc:creator>Den12</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=89694</wfw:commentRss><description>&lt;p&gt;Hi Luke,&lt;/p&gt;&lt;p&gt;I am&amp;nbsp;glad you found a solution, which works for your case.&lt;/p&gt;&lt;p&gt;Curious, if you do this ,&amp;quot; I set up a data connection to query the Ref Number column in the document library and the form adds 1 to the highest value&amp;quot; &lt;strong&gt;on Form Load&lt;/strong&gt;?&lt;/p&gt;&lt;p&gt;If so&amp;nbsp; and several people open and take their time (let say an hour to complete) and more people open/start same data entry on another instance of the form, wont they all get the same new ID (Ref #)?&lt;/p&gt;&lt;p&gt;If you do&amp;nbsp;the Ref#/Max-value&amp;nbsp;lookup on clicking Submit, then most likely you will be fine in 99% of the cases, otherwise see below:&lt;/p&gt;&lt;p&gt;Maybe I am missing something, but unless you can somehow &amp;quot;reserve&amp;quot; the IDs or never have more than one person working at a time with this form (in a network /Sharepoint environment) it is likely to get duplicate IDs. Only once you save the particular form you can get a unique ID (numerical, not date-conversion based) from system. &lt;/p&gt;&lt;p&gt;Just to clarify, I found that it works best if I do a double-save (fast/hidden submit, then use the secondary connection to pull the Form ID from Form Library and assign to whatever form field you need, then do a final submit/close). This way my forms always have and know their unique IDs (numerical). I even rename the Form Name in Library to use that numerical ID, so my Forms show something like ABC-12-1247 on the form pages and the the filename, for cases when downloaded for offline use.&lt;/p&gt;</description></item><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/89682.aspx</link><pubDate>Mon, 13 May 2013 14:51:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89682</guid><dc:creator>luke20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=89682</wfw:commentRss><description>&lt;p&gt;Thanks for your answer &lt;/p&gt;&lt;p&gt;I found a way to do this a few weeks ago..... I set up a data connection to query the Ref Number column in the document library and the form adds 1 to the highest value - in my case this does work because the forms should never be deleted from the library and the ref number is not set until the submit button is clicked and the form is submitted. I have tried this way and you can take as long as you want to fill out a form and still never get duplicate numbers :)&lt;/p&gt;&lt;p&gt;Thanks again &lt;/p&gt;</description></item><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/89493.aspx</link><pubDate>Fri, 03 May 2013 20:45:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89493</guid><dc:creator>Den12</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89493.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=89493</wfw:commentRss><description>&lt;p&gt;Luke, that may not be enough in cases, where forms could be deleted or multiple people submit simultaneously (editing sometimes takes long enough, so many people start same process)&lt;/p&gt;&lt;p&gt;Then the total number of documents will decrease and will cause a number duplicate. Now if your column is also defined as unique/index, then your form will crash.&lt;/p&gt;&lt;p&gt;The first recommendation is better and helps with potential concurrency issues.&lt;/p&gt;</description></item><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/87226.aspx</link><pubDate>Tue, 19 Feb 2013 08:50:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87226</guid><dc:creator>luke20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87226.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=87226</wfw:commentRss><description>&lt;p&gt;Hello. Thanks for your answer. &lt;/p&gt;&lt;p&gt;I found this quite confusing, but what i did was propogate the ref no field into sharepoint then put a formula on the field that found out the max number in this column and added 1.&lt;/p&gt;&lt;p&gt;Thanks again&lt;/p&gt;</description></item><item><title>Re: Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/87152.aspx</link><pubDate>Sun, 17 Feb 2013 20:29:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87152</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=87152</wfw:commentRss><description>&lt;p&gt;Hi Luke and welcome,&lt;/p&gt;&lt;p&gt;This is a very common request and one that has been answered many times in this forum.&lt;/p&gt;&lt;p&gt;You could import all of the previously entered forms into ShP and rely on the ShP library ID. Just add a double submit to your form. First submit saves form to library (with a field that has a unique ID promoted as a field - see File-&amp;gt;Properties-&amp;gt;Promoted). Then you have a rule that queries the library filtering on that unique field ID with an action to set the Ref No of the form equal to the List-Library ID from the ShP form library and submit again to have the form XML updated with this Ref No. This works well until you have to migrate data to another ShP site.&lt;/p&gt;&lt;p&gt;The problem with migration is that the IDs on the new site won&amp;#39;t match. Since you are storing the Ref No in the form, maybe this isn&amp;#39;t a big deal. New forms on the new site should get IDs beyond the numbers already assigned and you just have to promote the Ref No column and use that as your primary key for the forms. &lt;/p&gt;&lt;p&gt;If you aren&amp;#39;t migrating, this is a perfectly fine solution. Since you have a unique ID in the form, you can always use that as your primary key. To create a unique ID, you can use today&amp;#39;s date time stamp with the username - use the out-of-box Translate xpath function to remove special formatting form the datetime fields. Use the concat to prepend the username to the datetime string. For additional options, take a look at our blog here: &lt;a href="http://www.infopathdev.com/blogs/kaoruo/archive/2011/08/26/use-qrules-to-create-unique-form-names.aspx"&gt;http://www.infopathdev.com/blogs/kaoruo/archive/2011/08/26/use-qrules-to-create-unique-form-names.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Best of luck,&lt;/p&gt;</description></item><item><title>Is there a way to have a ‘reference number' column automatically increment for each new form that is submitted?</title><link>https://www.infopathdev.com:443/forums/thread/87066.aspx</link><pubDate>Thu, 14 Feb 2013 09:04:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87066</guid><dc:creator>luke20</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=87066</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNoSpacing"&gt;&lt;a name="_GoBack"&gt;&lt;/a&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font size="3"&gt;Each form needs to have a ref no when it is submitted to
the library. The department currently do this by hand on a printed bit of
paper- at the moment they are on about ref no 150 and when we switch over to
the InfoPath form which submits to a form library I need the ref number field
to automatically update. So the first person that submits a form will have ref
no 151 and the next person to submit automatically has 152 when they submit. Is
there a way this can be done?&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;Thanks &amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0cm 0cm 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;</description></item></channel></rss>