<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91680.aspx</link><pubDate>Sun, 28 Jul 2013 04:56:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91680</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91680</wfw:commentRss><description>&lt;p&gt;The technique I showed in &lt;a title="http://youtu.be/YMiuPZuCUWc" href="http://www.infopathdev.com/forums/Uniquely%20Numbering%20your%20Form"&gt;last Thursday&amp;#39;s webinar&lt;/a&gt; will return the current ID without using max (@ID) and it is bullet proof and best practice. &lt;/p&gt;
&lt;p&gt;The popularized max (@ID) technique is flawed for the following reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Simultaneous submits create forms with same ID&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Doesn’t work for views with permissions (just ask Doreen)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;May require that the entire list/library be queried -&amp;gt; not performant!&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;So, please stop saying max (@ID). It&amp;#39;s just bad and has no redeeming value. :) &lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91626.aspx</link><pubDate>Thu, 25 Jul 2013 14:54:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91626</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91626</wfw:commentRss><description>&lt;p&gt;I understand your idea with the ID, I have it working but that does not satisfy the requirement for the form.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I have to retrieve my own unique number using max (number) and add 1 to it.&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91613.aspx</link><pubDate>Thu, 25 Jul 2013 06:46:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91613</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91613</wfw:commentRss><description>&lt;p&gt;you don&amp;#39;t care about permissions on your library because you won&amp;#39;t be using max(ID). you are submitting, querying the item submitted, concatenating your ID with the ID returned, and submitting again, so the user only has to have access to the form she is submitting and the workflow shouldn&amp;#39;t take those permissions away until after the second submit&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91598.aspx</link><pubDate>Wed, 24 Jul 2013 14:41:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91598</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91598.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91598</wfw:commentRss><description>&lt;p&gt;Secondly, I tried creating another library, with open permissions, and promoted just the field in the form template that&amp;nbsp;I want to query and the user of the current form still cannot access all items in that new library.&lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91551.aspx</link><pubDate>Mon, 22 Jul 2013 19:32:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91551</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91551</wfw:commentRss><description>&lt;p&gt;I am using SPD 2007 - I don&amp;#39;t see an &amp;quot;Impersonate&amp;quot; step?&amp;nbsp; Is this in a later version?&amp;nbsp; I can see how this could be very useful in my case.&lt;/p&gt;&lt;p&gt;I was also thinking if I could put SharePoint column level permission on the one column the form&amp;nbsp; needs to get max(number) from,&amp;nbsp; that might be a way around this.&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the meantime I am promoting the&amp;nbsp;number field as &amp;quot;editable&amp;quot; by the admin&amp;nbsp;user so they can manually set&amp;nbsp;the next number when a&amp;nbsp;user without permission causes the number to duplicate....not ideal but until perfection is acheived, my solution.&amp;nbsp;&lt;/p&gt;&lt;p&gt;p.s. what do you mean by this: &amp;quot;&lt;span style="font-size:11pt;mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;&lt;em&gt;You&amp;#39;re on the road to Lhasa but watch out for the toxic nuclear waste provided by the ROC&lt;/em&gt;.&amp;quot; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:11pt;mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;:(&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91514.aspx</link><pubDate>Sun, 21 Jul 2013 00:28:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91514</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91514</wfw:commentRss><description>&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;Hi Doreen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;If you have a workflow on the library, you need to make sure to add a condition to the Impersonate Step that checks the status of the form and when the form does the first of two submits, make sure that status is not set to a value that will run the workflow. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;Here&amp;#39;s an updated post with your 10 steps to enlightenment. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://www.infopathdev.com/forums/p/26341/91512.aspx#91512"&gt;&lt;font color="#0563c1"&gt;http://www.infopathdev.com/forums/p/26341/91512.aspx#91512&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;You&amp;#39;re on the road to Lhasa but watch out for the toxic nuclear waste provided by the ROC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;MS Mincho&amp;#39;;mso-fareast-theme-font:minor-fareast;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:JA;mso-bidi-language:AR-SA;"&gt;:)&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91504.aspx</link><pubDate>Fri, 19 Jul 2013 20:09:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91504</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91504</wfw:commentRss><description>&lt;p&gt;Update: the solution is to remove the item level permissions.&amp;nbsp; I need the item level permissions too, so I will have to come up with a way to do both but for now this post is done.&amp;nbsp; Thank you to myself for the answer.&lt;/p&gt;</description></item><item><title>custom sequential numbering is reusing last number instead of adding 1 to Max(number)</title><link>https://www.infopathdev.com:443/forums/thread/91441.aspx</link><pubDate>Tue, 16 Jul 2013 22:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91441</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91441</wfw:commentRss><description>&lt;p&gt;I have created a integer field in my form called SortOrder that uses the 4-digit year date part + 3-digit number, Ex: 2013000, 2013001,2013002 etc. (I will actually display it in the library&amp;nbsp;in another field like this: 2013-000, 2013-001 etc).&lt;/p&gt;&lt;p&gt;Here&amp;#39;s how my sequential numbering works: &lt;/p&gt;&lt;p&gt;I have a field called SortOrder.&amp;nbsp;If there are no items in the library SortOrder will become YEAR000 (or 2013000, 2013001, 2013002...), then&amp;nbsp;the next item will become max(@SortOrder) +1 as long as the library is not empty.&amp;nbsp; If all items were deleted from the library, the numbering would start over OR if there are&amp;nbsp;existing items in the library BUT it&amp;#39;s a NEW YEAR,&amp;nbsp; the numbering will start over by multiplying the 4-digit year * 1000.&lt;/p&gt;&lt;p&gt;On form load rules&amp;nbsp;there is a&amp;nbsp;Year date check: if [substring-before(today(), &amp;quot;-&amp;quot;) - substring(max(@SortOrder), 1,4)) = 0], then [max(@SortOrder) + 1]; &amp;nbsp;if Year date check&amp;nbsp;= 1, then [substring-before(today(), &amp;quot;-&amp;quot;) * 1000]&lt;/p&gt;&lt;p&gt;&amp;nbsp;This works when the same person is always creating the form or&amp;nbsp;is in&amp;nbsp;Design mode on local machine,&amp;nbsp;but it&amp;nbsp;randomly works when others create the form from the library directly.&amp;nbsp;&amp;nbsp;For example, if&amp;nbsp;library is empty user1 creates a form 1st, it starts with 000, if user 2 creates a form next (2nd), it may start with 000 or 001,&amp;nbsp; if user1 creates their 2nd form or is now the 3rd&amp;nbsp;item added to the library, it may&amp;nbsp;start with 001.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am setting permission by item on the library using a SPD workflow but I removed the workflow (i.e. permissions) on the library to rule out that being the issue and it still behaved this way.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there something obvious I am missing&amp;nbsp;with the numbering?&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am not using any special qRules or DBXL - it&amp;#39;s a fairly simple form other than there are 20 views.&lt;/p&gt;</description></item></channel></rss>