<?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>Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx</link><description>I may be exagerating when I say &amp;#39;fun&amp;#39;. Forgive me for that. There are a variety of ways that you can create a unique, human readable form Id. This blog post is for those of you who prefer not to have to write or buy a web service, and don&amp;#39;t</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#105802</link><pubDate>Tue, 15 Mar 2016 02:17:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105802</guid><dc:creator>Sapnesh sharma</dc:creator><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;I am sure this post has been locked and finished as it was opened in 2009 however I still find it very useful and trying to incorporate steps being advised. I have created the Stored procs. however when executing &amp;quot;GenerateGUID&amp;quot; it returns GUIDE as below:&lt;/p&gt;
&lt;p&gt;GUID&lt;/p&gt;
&lt;p&gt;3107A100-F109-4668-973F-3692B67D15BD&lt;/p&gt;
&lt;p&gt;However Return Value is coming as '0' (Zero) hence when executing stroed proc. &amp;quot;FormIdInsertRow&amp;quot; getting error stating:&lt;/p&gt;
&lt;p&gt;'FormIdInsertRow' expects parameter '@GUID', which was not supplied.&lt;/p&gt;
&lt;p&gt;Can you please advise (If possible) if there is something I have missed.&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=105802" width="1" height="1"&gt;</description></item><item><title>rimonabantexcellence site title</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#90685</link><pubDate>Fri, 14 Jun 2013 06:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90685</guid><dc:creator>rimonabantexcellence site title</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;rimonabantexcellence site title&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=90685" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#58894</link><pubDate>Mon, 13 Sep 2010 02:06:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58894</guid><dc:creator>daniloraf</dc:creator><description>&lt;p&gt;sorry for all the replies&lt;/p&gt;
&lt;p&gt;in case later i have trouble submiting the formid as text to an integer sql column (due to the xsi:nil), i have checked out this post, and it seems to be a solution, in case somone else needs it.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/infopath/archive/2006/11/28/the-xsi-nil-attribute.aspx"&gt;blogs.msdn.com/.../the-xsi-nil-attribute.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Again, Thanks Hilary!&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=58894" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#58893</link><pubDate>Mon, 13 Sep 2010 01:51:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58893</guid><dc:creator>daniloraf</dc:creator><description>&lt;p&gt;got it working by changing the data type on the formid field.. i had left it as integer, and when i switched back to text, it worked fine. &amp;nbsp;but, will it submit properly to a webservice that connects to a sql server and has to insert this id to a integer column in sql table?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=58893" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#58892</link><pubDate>Mon, 13 Sep 2010 01:48:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58892</guid><dc:creator>daniloraf</dc:creator><description>&lt;p&gt;got it working; it was a syntax issue on the xpath .&lt;/p&gt;
&lt;p&gt;now im getting the error: &amp;quot;schema-validation-found-non-data-type-errors/&amp;quot; on save; looking it up i found it to be something to do with xsi:null attribute.. &amp;nbsp;any hints?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=58892" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#58891</link><pubDate>Mon, 13 Sep 2010 01:38:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58891</guid><dc:creator>daniloraf</dc:creator><description>&lt;p&gt;Hi Hillary,&lt;/p&gt;
&lt;p&gt;I followed the post exactly, but still getting an error message when I try to save the form; perhaps you could point me to what i&amp;#180;m doing wrong or a solution?&lt;/p&gt;
&lt;p&gt;Infopath tells me:&lt;/p&gt;
&lt;p&gt;System.NullReferenceException&lt;/p&gt;
&lt;p&gt;Object reference not set to an instance of an object.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at OrdemRetirada.FormCode.FormEvents_Save(Object sender, SaveEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSaveRequest(SaveEvent pEvent)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSaveRequest(SaveEvent pEvent)&lt;/p&gt;
&lt;p&gt;Using Infopath 2007, moss 2007, sql 2005&lt;/p&gt;
&lt;p&gt;I avoid code, since i don&amp;#180;t have the c# skill (usually copy-paste)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Dan, from Brazil&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=58891" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#58681</link><pubDate>Sat, 04 Sep 2010 03:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58681</guid><dc:creator>stuartward</dc:creator><description>&lt;p&gt;This was exactly what I was looking for. Thanks for posting a detailed description of how to create incrementing form IDs.&lt;/p&gt;
&lt;p&gt;Thanks, Stuart&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=58681" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#47853</link><pubDate>Tue, 13 Oct 2009 15:00:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47853</guid><dc:creator>Hilary Stoupa</dc:creator><description>&lt;p&gt;Yes, that is a limitation of browser forms. Perhaps you could use Submit instead of Save? I believe you can use custom code for Submit in a browser form.&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=47853" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#47794</link><pubDate>Mon, 12 Oct 2009 07:33:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47794</guid><dc:creator>giangy11</dc:creator><description>&lt;p&gt;there is a problem:&lt;/p&gt;
&lt;p&gt;i'm following the guide you give me, in a passage she says:&lt;/p&gt;
&lt;p&gt;&amp;quot;Go to Tools &amp;gt; Form Options and select the &amp;quot;Save using custom code&amp;quot; checkbox&amp;quot;&lt;/p&gt;
&lt;p&gt;I can't check that checkbox because it's not browser compatible...i need the infopath forms open with browser...what can i do?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=47794" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#47369</link><pubDate>Sun, 27 Sep 2009 13:32:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47369</guid><dc:creator>Hilary Stoupa</dc:creator><description>&lt;p&gt;Rules always run before code. There are some blog posts out there on how to call a code function from a rule that you could try... or you can handle your submit in code as well.&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=47369" width="1" height="1"&gt;</description></item><item><title>re: Fun with Sequential Form IDs, SQL and Sprocs!</title><link>https://www.infopathdev.com:443/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx#46182</link><pubDate>Mon, 24 Aug 2009 22:08:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46182</guid><dc:creator>Jess573</dc:creator><description>&lt;p&gt;This is a very good example of how to generate a unique ID. &amp;nbsp;I was able to use it with only one tweak. &amp;nbsp;(I had to include &amp;quot;tbl&amp;quot; in front of my table references. &amp;nbsp;RIght now, I have the form ID being generated when the form opens; however, I'd like this to happen when the submit button is clicked. &amp;nbsp;The only problem is that the Submit Rules occur before the code executes. &amp;nbsp;Any ideas on how to fix this?&lt;/p&gt;
&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=46182" width="1" height="1"&gt;</description></item></channel></rss>