<?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: InfoPath Unique ID Number</title><link>https://www.infopathdev.com:443/forums/thread/59616.aspx</link><pubDate>Tue, 05 Oct 2010 09:10:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59616</guid><dc:creator>duffer73</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59616.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59616</wfw:commentRss><description>&lt;p&gt;A soluton I have used is to query the ID of the form library on submission of the form, not when opening the form.&lt;/p&gt;
&lt;p&gt;Setup a new Data Connection to query the form library and retrieve the ID&lt;/p&gt;
&lt;p&gt;On a custom Submit button&amp;nbsp;set the rule to run the query using the above Data Connection, and then set an action to set a field value to the ID+1.&lt;/p&gt;
&lt;p&gt;The set an action to Submit the form to the library, using the field as part of the filename.&lt;/p&gt;
&lt;p&gt;So, even if more than one user has the form open at the same time, it WON&amp;#39;T retrieve the ID until the user submits (there is still the potential for users to hit submit at the same time down to the millisecond albeit slight - this can be overcome (slightly) by appending the users ID to the filename as well further reducing the risk of duplicate filenames)&lt;/p&gt;</description></item><item><title>Re: InfoPath Unique ID Number</title><link>https://www.infopathdev.com:443/forums/thread/39937.aspx</link><pubDate>Tue, 24 Mar 2009 22:14:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39937</guid><dc:creator>SethMW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39937.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39937</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The best way is to use SQL which will generate a unique sequential ID with each submit.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

Not to hijack, but I tried this today, and an issue I ran into is the ID doesn&amp;#39;t fully get set until you submit.

In my case I had a repeating table/section with a couple fields and allowed the user to insert. I then had a button to go to a view of the item where all the fields are available. On this view I wanted to filter a repeater so that only the selected row&amp;#39;s fields would show, but I wasn&amp;#39;t able to use the ID because the form hadn&amp;#39;t been submitted yet.</description></item><item><title>Re: InfoPath Unique ID Number</title><link>https://www.infopathdev.com:443/forums/thread/39915.aspx</link><pubDate>Tue, 24 Mar 2009 15:48:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39915</guid><dc:creator>Jason_2009</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39915</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;The best way is to use SQL which will generate a unique sequential ID with each submit.&lt;/p&gt;
&lt;p&gt;In your case I would maybe have two libraries.&amp;nbsp; Have one that is hidden by obscurity and you can control the view getting changed. That should help not being dependent on the main default view.&lt;/p&gt;
&lt;p&gt;Or sometimes putting a date or time portion in the name could help as well.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How does the ID get incremented if there are no documents going into the hidden library? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: InfoPath Unique ID Number</title><link>https://www.infopathdev.com:443/forums/thread/33204.aspx</link><pubDate>Fri, 17 Oct 2008 13:46:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33204</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33204</wfw:commentRss><description>&lt;p&gt;The best way is to use SQL which will generate a unique sequential ID with each submit.&lt;/p&gt;
&lt;p&gt;In your case I would maybe have two libraries.&amp;nbsp; Have one that is hidden by obscurity and you can control the view getting changed. That should help not being dependent on the main default view.&lt;/p&gt;
&lt;p&gt;Or sometimes putting a date or time portion in the name could help as well.&lt;/p&gt;</description></item><item><title>InfoPath Unique ID Number</title><link>https://www.infopathdev.com:443/forums/thread/33131.aspx</link><pubDate>Thu, 16 Oct 2008 00:31:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33131</guid><dc:creator>phamj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33131.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33131</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;This has been a big issue that I&amp;#39;ve been having for awhile and I&amp;#39;m sure heaps of people have come across this same situation before.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have read a few threads regarding this issue:&lt;/p&gt;&lt;p&gt;&lt;a&gt;http://www.infopathdev.com/forums/p/2197/19655.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a&gt; http://www.infopathdev.com/forums/p/4742/18390.aspx#18390&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Quite interesting but still no solution.&amp;nbsp; I just want to know what you guys have been saving your InfoPath forms as - what unique name did you use?&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried many ways... One of which is using the SharePoint ID.&lt;/p&gt;&lt;p&gt;Once the form has been publish to a SharePoint library, I did a data connection back to the InfoPath form to retreive that SharePoint ID.&lt;/p&gt;&lt;p&gt;And using the function max(@ID) + 1 to generate the new ID number for the next form. Success! Works okay...&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Problem&lt;/b&gt;:&amp;nbsp; If the owner of the form library decides to change the default view of that form library to another view with filters/sorting etc set on the view - not all form records will be there...&lt;/p&gt;&lt;p&gt;and the function max(@ID) + 1 will only grab the largest ID number within that default view but not the max of the entire form library.&lt;/p&gt;&lt;p&gt;Any ideas on how I could solve this by like some how referencing the GUID of the Form Library instead? OR is there a better way to generate an ID number?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>