<?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: Autopopulate a field with incremental ID # and set # of digits.</title><link>https://www.infopathdev.com:443/forums/thread/57485.aspx</link><pubDate>Fri, 30 Jul 2010 15:31:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57485</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57485</wfw:commentRss><description>&lt;p&gt;One issue with generating an ID when the form opens -- most methods suggest getting the max ID currently in use and incrementing... but what happens if I open a form, and the ID I get is 2, and you open a form before I submit mine? You also get an ID of 2. You really need to consider using a SQL table where you can &amp;quot;reserve&amp;quot; an ID for your form -- the general idea is outlined &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Autopopulate a field with incremental ID # and set # of digits.</title><link>https://www.infopathdev.com:443/forums/thread/57482.aspx</link><pubDate>Fri, 30 Jul 2010 13:13:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57482</guid><dc:creator>mpeters</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57482</wfw:commentRss><description>&lt;p&gt;To get it zero filled, concat a field with four zeroes onto the front of the ID number field, then use the &amp;#39;substring&amp;#39; function to grab the four right-most digits. Concatted field:&amp;nbsp; 00002, after substring: 0002&lt;/p&gt;
&lt;p&gt;So, if you have a larger number it would look like this:&amp;nbsp; 0000102, and the substring would look like this: 0102&lt;/p&gt;</description></item><item><title>Re: Autopopulate a field with incremental ID # and set # of digits.</title><link>https://www.infopathdev.com:443/forums/thread/57479.aspx</link><pubDate>Fri, 30 Jul 2010 12:51:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57479</guid><dc:creator>mgarant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57479</wfw:commentRss><description>&lt;p&gt;To have the increment ID, create a Data connection to your sharepoint library, with only the column ID taken from it. Then, set the default value of your field to Max([ID from the data connection])+1. For the &amp;quot;0001&amp;quot; thing, i do not know how to do this. Maybe someone else could help?&lt;/p&gt;</description></item><item><title>Autopopulate a field with incremental ID # and set # of digits.</title><link>https://www.infopathdev.com:443/forums/thread/57455.aspx</link><pubDate>Thu, 29 Jul 2010 17:58:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57455</guid><dc:creator>AlexG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57455</wfw:commentRss><description>&lt;p&gt;Hello, I&amp;#39;m somewhat new to Infopath and this is my first time to the forums.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to get a textbox to autopopulate an ID number that will increment based on the number of forms submitted to a sharepoint library.&amp;nbsp; Also, I need it to be a set number of digits, so that it will be 0001, 0002, and so on, instead of &amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;1. is it possible to set a text box to look like &amp;quot;0001&amp;quot; &amp;quot;0002&amp;quot; instead of simplifying to &amp;quot;1&amp;quot; or &amp;quot;2&amp;quot;&lt;/p&gt;
&lt;p&gt;2. I want this text box to autopopulate upon form creation/the form being opened, not &lt;a class="" title="based on a button as with this example." href="http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/#comment-1147"&gt;based on a button as with this example.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;</description></item></channel></rss>