<?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: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19657.aspx</link><pubDate>Tue, 08 May 2007 05:28:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19657</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19657</wfw:commentRss><description>Check out this post: &lt;a href='http://www.infopathdev.com/forums/post/15351.aspx'&gt;http://www.infopathdev.com/forums/post/15351.aspx&lt;/a&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19656.aspx</link><pubDate>Tue, 08 May 2007 03:55:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19656</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19656</wfw:commentRss><description>&lt;p&gt;Actually, I was following up Agni&amp;#39;s solution:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Agni Jonnalagadda:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Hi,
When you submit a form to sharepoint, sharepoint creates an ID for your form, this is a sequesnce number. What we normally in our projects is, 
1. Submit the form to sharepoint
2. Get the ID created by sharepoint and set this value in the form. This is done using sharepoint &amp;quot;_vti_bin/lists.asmx&amp;quot; webservice.
3. Submit the form to sharepoint again.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Would you be able to give me pointers on how to obtain the ID created using the GetListItems method from the  &amp;quot;_vti_bin/lists.asmx&amp;quot; webservice?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19655.aspx</link><pubDate>Tue, 08 May 2007 02:05:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19655</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19655.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19655</wfw:commentRss><description>&lt;p&gt;Hi Matt and Nukkumati, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for the input and I think I used the term &amp;#39;sharepoint ID&amp;#39; incorrectly here.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What I meant was the unique form ID that&amp;#39;s created by the sharepoint when the form is submitted to sharepoint.&lt;/p&gt;&lt;p&gt;But yes both of you are right that the basis of this thread is about random ID number, I&amp;#39;ll just post my question in other thread and truly sorry about the confusion :(&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19626.aspx</link><pubDate>Mon, 07 May 2007 13:13:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19626</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19626</wfw:commentRss><description>Nukkumati has the right idea if you're just looking to generate a random number (as is the basis of this thread), but if you're trying to grab the SharePoint ID (which is also a GUID), you will have to do that by checking out the Address Bar in a web browser.  Check out my blog post on Adding SharePoint List Items from InfoPath and you should find the information you need.</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19619.aspx</link><pubDate>Mon, 07 May 2007 11:53:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19619</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19619</wfw:commentRss><description>&lt;p&gt;Have you thought about just using the GUID. You could use System.GUID.NewID() method to receive a unique number/string.&lt;/p&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/19614.aspx</link><pubDate>Mon, 07 May 2007 08:10:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19614</guid><dc:creator>potpourri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19614</wfw:commentRss><description>&lt;p&gt;Hi Agni, &lt;/p&gt;&lt;p&gt;I&amp;#39;ve been looking for the way to grab the sharepoint ID using lists.asmx and could only stumbled across this article (written by Agni too):&lt;/p&gt;&lt;p&gt;http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Would I be able to use that article (using GetListItems method) to retrieve the sharepoint ID?&lt;/p&gt;&lt;p&gt;And if it&amp;#39;s a yes, is it going to be similar?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;p.s: Cant believe it&amp;#39;s so complicated to just grab a sharepoint ID :S&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9165.aspx</link><pubDate>Wed, 01 Mar 2006 16:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9165</guid><dc:creator>vdang2003</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9165</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;First of All, thank you for your reply. I am try to use VSTO based on C# to make the connection to my Form. But now it come up another situation,&lt;br /&gt;&lt;br /&gt;Here is my data:&lt;br /&gt;&lt;br /&gt;+ myFields&lt;br /&gt;	+queryFields&lt;br /&gt;	+dataFields&lt;br /&gt;		- PLD_MAIN&lt;br /&gt;			+ AutoTrackingNum&lt;br /&gt;			+ Project&lt;br /&gt;			+ Rev&lt;br /&gt;&lt;br /&gt;(Maybe format will give confusion result: queryFields and dataFields are subgroup of myFields, PLD_MAIN is subgroup of dataFields,&lt;br /&gt;AutoTrackingNum, Project, Rev are fields of PLD_MAIN's group)&lt;br /&gt;&lt;br /&gt;Here is the story, I would like to combine the value of Project (Drop down list selected) + the value of Rev (Drop down list selected) with&lt;br /&gt;AutoNumber (Random number). And after that use that combination to submit back to the my database (table).&lt;br /&gt;&lt;br /&gt;And below is the code I used MS Studio with C# to test the value of "Rev" field:&lt;br /&gt;&lt;br /&gt;string str = thisXDocument.DOM.selectSingleNode("/myFields/dataFields/PLD_MAIN/Rev").ToString();&lt;br /&gt;&lt;br /&gt;thisXDocument.UI.Alert(str);&lt;br /&gt;&lt;br /&gt;My concern is my string ("/myFields/dataFields/PLD_MAIN/Rev") sent to selectSingleNode, I am not sure I done right ? &lt;br /&gt;Because system still give me the message "MESSAGE REFERENCE NOT SET  TO AN INSTANCE OF OBJECT".&lt;br /&gt;&lt;br /&gt;Please help me through this situation, I spent already one week on that subject.&lt;br /&gt;&lt;br /&gt;Thank you very much,&lt;br /&gt;&lt;br /&gt;vd&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9164.aspx</link><pubDate>Tue, 28 Feb 2006 20:21:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9164</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9164</wfw:commentRss><description>Hi,&lt;br /&gt;When you submit a form to sharepoint, sharepoint creates an ID for your form, this is a sequesnce number. What we normally in our projects is, &lt;br /&gt;1. Submit the form to sharepoint&lt;br /&gt;2. Get the ID created by sharepoint and set this value in the form. This is done using sharepoint "_vti_bin/lists.asmx" webservice.&lt;br /&gt;3. Submit the form to sharepoint again.</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9163.aspx</link><pubDate>Tue, 28 Feb 2006 04:23:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9163</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9163</wfw:commentRss><description>If you wait to grab the autonumber from the database until immediatly before you submit, you should be able to stay pretty safe.  As long as the retrieval of the autonumber and the submission are within a couple lines of each other, you will have less than a 1 second window for two uses to get the same autonumber. Depending on connection speed, etc.&lt;br /&gt;&lt;br /&gt;Otherwise, you could use something else as a unique identifier, like a datetime stamp carried out to the milliseconds.</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9162.aspx</link><pubDate>Sat, 25 Feb 2006 02:29:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9162</guid><dc:creator>vdang2003</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9162</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;I read that subject but I found something I concern about: What if two users fill out the forms in the same times so the query will give two of users with the same AUTONUMBER. That will create the duplicate number if they submit.&lt;br /&gt;&lt;br /&gt;Another thing, if in Access, I use AutoNumber, I will have the problem, the new AutoNumber will create when we append the new entry, but the query just pull out the number only. How could we do append query during the regular query.&lt;br /&gt;&lt;br /&gt;Please give me more advice in that situation. The whole purpose, I just want to create auto unique number for my form, and also I would like to upload that form to SharePoint Portal Server for multi-users in the same time.&lt;br /&gt;&lt;br /&gt;Again, thanks for your advice,&lt;br /&gt;&lt;br /&gt;vd&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr /&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Vinh Dang and welcome to our forum!&lt;br /&gt;This is an often discussed topic. Please use the &amp;quot;Search the InfoPathDev Forums for:&amp;quot; link in the upper right corner and search for &amp;quot;auto number Access database&amp;quot;. I&amp;#39;m sure you will find something.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle&lt;br /&gt;&lt;hr /&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9161.aspx</link><pubDate>Fri, 24 Feb 2006 20:08:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9161</guid><dc:creator>vdang2003</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9161</wfw:commentRss><description>Thank you very much for your supports,&lt;br /&gt;&lt;br /&gt;I will try it and I will let you know how far I could go, because some section in there I need to read more.&lt;br /&gt;&lt;br /&gt;Happy Friday to you,&lt;br /&gt;&lt;br /&gt;vd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Vinh Dang and welcome to our forum!&lt;br /&gt;This is an often discussed topic. Please use the "Search the InfoPathDev Forums for:" link in the upper right corner and search for "auto number Access database". I'm sure you will find something.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/9160.aspx</link><pubDate>Fri, 24 Feb 2006 07:36:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9160</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9160</wfw:commentRss><description>Hi Vinh Dang and welcome to our forum!&lt;br /&gt;This is an often discussed topic. Please use the "Search the InfoPathDev Forums for:" link in the upper right corner and search for "auto number Access database". I'm sure you will find something.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle</description></item><item><title>Random ID Number</title><link>https://www.infopathdev.com:443/forums/thread/5391.aspx</link><pubDate>Thu, 23 Feb 2006 13:06:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5391</guid><dc:creator>vdang2003</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5391</wfw:commentRss><description>Hi All Friends,&lt;br /&gt;&lt;br /&gt;I a new in InfoPath, I created a form to submit the data to ACCESS table but I got the problem, I don't know how to handle the sequence ID, because I would like to have new ID every times the user fill out the form and also the ID number could not be overlapsed or in the case the user fill out the form with the new ID then the user decide to cancel that form (ex: by close that form without submit) so that ID need to be available for the next user. Please give me the advice,&lt;br /&gt;&lt;br /&gt;Thank you very much, that will be the big help for me.&lt;br /&gt;&lt;br /&gt;Have a great day&lt;br /&gt;&lt;br /&gt;vdang&lt;br /&gt;&lt;br /&gt;Vinh Dang</description></item></channel></rss>