<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Most preferred auto-increment field method?</title><link>https://www.infopathdev.com:443/forums/thread/88089.aspx</link><pubDate>Sun, 17 Mar 2013 19:38:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88089</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88089</wfw:commentRss><description>&lt;p&gt;Hi Kamishiro-san and thanks for posting.&lt;/p&gt;&lt;p&gt;I recently replied to another poster on the same topic: http://www.infopathdev.com/forums/p/25273/87867.aspx#87867 &lt;/p&gt;&lt;p&gt;The problem you will have with Method #1 is contention when two users submit simultaneously. I talk about this in the post referenced above. Best practice is to use a double submit. &lt;/p&gt;&lt;p&gt;To get the format, just use something like: concat(substring(&amp;quot;00000&amp;quot;,5-length(field1)),field1), for your default value&amp;nbsp;where field1 is the ref. You&amp;#39;ll want to use this default value on a separate field or as part of a rule.&lt;/p&gt;&lt;p&gt;もうちょいがんばってね。&lt;/p&gt;&lt;p&gt;Patrick&lt;/p&gt;</description></item><item><title>Most preferred auto-increment field method?</title><link>https://www.infopathdev.com:443/forums/thread/88030.aspx</link><pubDate>Thu, 14 Mar 2013 18:07:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88030</guid><dc:creator>Kamishiro_Takuto</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88030</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;

&lt;p&gt;I&amp;#39;d like to ask what would be the best method to apply an auto-increment field?&lt;/p&gt;

&lt;p&gt;I&amp;#39;ve currently manage to set the RefNumber field to contain only 5 digits with all 0s covering all digits based on the length of the ItemID of the second custom list (e.g. 00001, 00010, 00120, etc).&lt;/p&gt;


&lt;p&gt;&lt;b&gt;1st Method&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;What I&amp;#39;m first trying now is to have a second custom list to copy the most recent/highest Item ID from and whenever a new form is submitted, a list workflow will pick up and update the second list, creating an entry just to create the next item ID to copy from.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;For some reason, the workflow doesn&amp;#39;t want to create an entry. Are there some cases where infopath customized forms do not work well with Sharepoint Workflows?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;2nd Method&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;The idea is to have an xml file have the values of the ID and RefNumber. But I don&amp;#39;t know much yet about XMLs so this is probably a no go for me&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;If anyone has an easier method for auto-increment without coding (I&amp;#39;m not allowed to heavily code), I&amp;#39;d love to hear it. Thank You.&lt;/p&gt;</description></item></channel></rss>