<?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: Ensuring unique numbers in InfoPath forms</title><link>https://www.infopathdev.com:443/forums/thread/41752.aspx</link><pubDate>Fri, 15 May 2009 00:54:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41752</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41752</wfw:commentRss><description>&lt;p&gt;You need to do the increment on the server when the form is submitted and have the form requery the server, get the new ID, and set it in the form. You cna hen concat your 2 char prefix to it and save it. &lt;/p&gt;
&lt;p&gt;This topic is the most-often asked question in this forum. I replied to another person last week. There must be at least two dozen forum threads on this. Have you actually tried to search for them? &lt;/p&gt;
&lt;p&gt;Your personal search concierge,&lt;/p&gt;</description></item><item><title>Ensuring unique numbers in InfoPath forms</title><link>https://www.infopathdev.com:443/forums/thread/41714.aspx</link><pubDate>Thu, 14 May 2009 13:50:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41714</guid><dc:creator>ramakrishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41714</wfw:commentRss><description>&lt;p&gt;I have an InfoPath form that submits to a SharePoint forms library.&lt;br /&gt;&lt;br /&gt;The forms are for tracking invoices and include a generated reference that should be sequential and unique. &amp;nbsp;The number is based on the department and the highest number so far +1.&lt;br /&gt;E.g. invoices generated for Finance, IT, Legal, HR, IT would be&lt;br /&gt;FI000001, IT000002, LE000003, HR000004, IT000005 respectively.&lt;br /&gt;&lt;br /&gt;Currently this works fine; when the form is generated it calculates max(ID)+1 from the existing forms, pads the number with zeroes and prefixes it with the department code.&lt;br /&gt;&lt;br /&gt;Each department now needs to make their invoices visible only to members of their department (using permissions, a view on a list isn&amp;#39;t enough).&lt;br /&gt;The permissions I can do fine using item level permissions in a SharePoint workflow.&lt;br /&gt;&lt;br /&gt;Problem is, in the above example, if Legal were to generate a new invoice then the only existing invoice they&amp;#39;d see would be LE000003, so InfoPath would generate LE000004. &amp;nbsp;Number 4 is in use by HR though. &amp;nbsp;The next reference should have been LE000006 but InfoPath can&amp;#39;t see 4 or 5.&lt;br /&gt;&lt;br /&gt;Short of making a separate number fountain I can&amp;#39;t think of a way to get around this problem.&lt;br /&gt;&lt;br /&gt;Points to either an answer or helpful comments :)&lt;br /&gt;Thanks in advance&lt;/p&gt;</description></item></channel></rss>