<?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: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9485.aspx</link><pubDate>Tue, 17 Oct 2006 07:06:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9485</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9485</wfw:commentRss><description>Hi fillrobs,&lt;br /&gt;&lt;br /&gt;U have missed the following namespace System.Configuration&lt;br /&gt;U need to add this namespace like this...&lt;br /&gt;using System.Configuration;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9484.aspx</link><pubDate>Fri, 13 Oct 2006 16:51:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9484</guid><dc:creator>fillrobs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9484</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I tried cutting and pasting the below into my asmx file but I get an error on the &lt;br /&gt;&lt;br /&gt;ConfigurationSettings&lt;br /&gt;&lt;br /&gt;It says (when I try and Build the APP)&lt;br /&gt;"The type or namespace name 'ConfigurationSettings' could not be found (are you missing a using directive or an assembly reference)"&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;Thanks in advance...&lt;br /&gt;&lt;br /&gt;Phil&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 Abhishek&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Ya sure Nukkumatti,&lt;br /&gt;I will give u the code which I have written.&lt;br /&gt;&lt;br /&gt;[WebMethod]&lt;br /&gt;		public DataSet NextPRSerialNumber()&lt;br /&gt;		{&lt;br /&gt;			String filename = ConfigurationSettings.AppSettings["PRNumFile"];&lt;br /&gt;			System.IO.StreamReader file = new System.IO.StreamReader(filename);&lt;br /&gt;			String strNum = file.ReadToEnd();&lt;br /&gt;			file.Close();&lt;br /&gt;			&lt;br /&gt;			System.IO.StreamWriter file2 = new System.IO.StreamWriter(filename,false);&lt;br /&gt;			strNum = Convert.ToString(Convert.ToInt32(strNum) + 1);&lt;br /&gt;			file2.WriteLine(strNum);&lt;br /&gt;			file2.Close();&lt;br /&gt;			DataTable dt = new DataTable();&lt;br /&gt;			dt.Columns.Add("PRSerialNumber");&lt;br /&gt;			dt.Rows.Add(new object[]{"PR_" + DateTime.Today.Year + "_" + strNum.PadLeft(6,'0')});&lt;br /&gt;			DataSet ds = new DataSet();&lt;br /&gt;			ds.Tables.Add(dt);&lt;br /&gt;			return ds;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In ur web.config file,u should have the following...U can change this based on ur text file's location.&lt;br /&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;        &amp;lt;add key="PRNumFile" value="C:\MCG\WebService_PR\PRNum.txt" /&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I think u should be able to understand the above code.&lt;br /&gt;Do the modifications as how u want it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek.&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: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9483.aspx</link><pubDate>Fri, 15 Sep 2006 13:38:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9483</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9483</wfw:commentRss><description>Maxim:&lt;br /&gt;&lt;br /&gt;Can you explain how you use that onload event to generate a unique ID.  I'm not a programmer, but can muddle my way through with some guidance.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9482.aspx</link><pubDate>Fri, 15 Sep 2006 13:35:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9482</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9482</wfw:commentRss><description>Since I don't have access to the Sharepoint Web server to install a Web Service, I'm thinking merddyin's solution is a good idea.  The problem with implementing it in my situation is that the FormID is not generated until AFTER the form is submitted, so how do you use it as part of the form name when submitting?</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9481.aspx</link><pubDate>Wed, 07 Jun 2006 19:54:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9481</guid><dc:creator>merddyin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9481</wfw:commentRss><description>I don't know if you have received a satisfactory answer or not yet to your post, but I can share what I did.&lt;br /&gt;&lt;br /&gt;First, I created a receive data connection attached to my sharepoint forms library. I set it to retrieve the ID field when the form is opened. I then created a text field on my form (this could theoretically be hidden) to set the format. In my case I needed unique form IDs starting at 6000 so my formula to set the field data is 'count(@ID) + 6000'. Every time the form is opened it will do a count of all current forms and add 6000 to it. &lt;br /&gt;&lt;br /&gt;I am sure there are better ways, but I am not a programmer and I think as long as I don't have too many submissions at once I should be ok. Otherwise I guess I will have to code the submit button to pull a current count on submit...no clue how to do that.&lt;br /&gt;&lt;br /&gt;Anyway, hope this helps.</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9480.aspx</link><pubDate>Thu, 01 Jun 2006 10:58:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9480</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9480</wfw:commentRss><description>Hi Nupur,&lt;br /&gt;Using the web service is the easiest way I can think of.U can call the web service from ur JScript code.&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9479.aspx</link><pubDate>Thu, 01 Jun 2006 06:31:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9479</guid><dc:creator>nupur</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9479</wfw:commentRss><description>Hi is there some other way to do this using jscript without creating anew web service??????&lt;br /&gt;thnaks&lt;br /&gt;Nupur</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9478.aspx</link><pubDate>Fri, 07 Apr 2006 06:00:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9478</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9478.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9478</wfw:commentRss><description>Thx a LOT you both !</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9477.aspx</link><pubDate>Fri, 07 Apr 2006 05:45:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9477</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9477</wfw:commentRss><description>Hi Maslov,&lt;br /&gt;I was just browsing in the net regarding Nukkmatti's point.&lt;br /&gt;If u want to generate a unique and random formid,what Nukkumatti says is easy to implement and great.&lt;br /&gt;But if u want a sequential increment of ur form id starting from 0, u can use my method.&lt;br /&gt;&lt;br /&gt;For more on generating random numbers,take a look at the foolowing link.&lt;br /&lt;a target="_blank" href=http://aspnet.4guysfromrolla.com/articles/101205-1.aspx&gt;http://aspnet.4guysfromrolla.com/articles/101205-1.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9476.aspx</link><pubDate>Thu, 06 Apr 2006 14:40:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9476</guid><dc:creator>maslov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9476</wfw:commentRss><description>Hello, Nukkumatti&lt;br /&gt;&lt;br /&gt;You can also generate unique GUID in Load event using "Scriptlet.TypeLib" ActiveX object (if you are in JavaScript):&lt;br /&gt;&lt;br /&gt;var guid = &lt;br /&gt;    new ActiveXObject("Scriptlet.TypeLib").guid.substring( 0, 38);&lt;br /&gt;&lt;br /&gt;or using System.Guid.NewGuid() method (if you are in .NET).&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Maxim</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9475.aspx</link><pubDate>Thu, 06 Apr 2006 14:03:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9475</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9475.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9475</wfw:commentRss><description>Ya sure Nukkumatti,&lt;br /&gt;I will give u the code which I have written.&lt;br /&gt;&lt;br /&gt;[WebMethod]&lt;br /&gt;		public DataSet NextPRSerialNumber()&lt;br /&gt;		{&lt;br /&gt;			String filename = ConfigurationSettings.AppSettings["PRNumFile"];&lt;br /&gt;			System.IO.StreamReader file = new System.IO.StreamReader(filename);&lt;br /&gt;			String strNum = file.ReadToEnd();&lt;br /&gt;			file.Close();&lt;br /&gt;			&lt;br /&gt;			System.IO.StreamWriter file2 = new System.IO.StreamWriter(filename,false);&lt;br /&gt;			strNum = Convert.ToString(Convert.ToInt32(strNum) + 1);&lt;br /&gt;			file2.WriteLine(strNum);&lt;br /&gt;			file2.Close();&lt;br /&gt;			DataTable dt = new DataTable();&lt;br /&gt;			dt.Columns.Add("PRSerialNumber");&lt;br /&gt;			dt.Rows.Add(new object[]{"PR_" + DateTime.Today.Year + "_" + strNum.PadLeft(6,'0')});&lt;br /&gt;			DataSet ds = new DataSet();&lt;br /&gt;			ds.Tables.Add(dt);&lt;br /&gt;			return ds;&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In ur web.config file,u should have the following...U can change this based on ur text file's location.&lt;br /&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;        &amp;lt;add key="PRNumFile" value="C:\MCG\WebService_PR\PRNum.txt" /&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I think u should be able to understand the above code.&lt;br /&gt;Do the modifications as how u want it.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek.</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9474.aspx</link><pubDate>Thu, 06 Apr 2006 11:31:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9474</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9474</wfw:commentRss><description>Thx Abhishek,&lt;br /&gt;but code you give me a short code introduction on how to start with it ?&lt;br /&gt;&lt;br /&gt;Thx</description></item><item><title>Re: Form ID</title><link>https://www.infopathdev.com:443/forums/thread/9473.aspx</link><pubDate>Thu, 06 Apr 2006 08:40:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9473</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9473</wfw:commentRss><description>Hi Nukkumatti,&lt;br /&gt;I have a similar situation.What I have done is..&lt;br /&gt;I use a webservice to accomplish this.&lt;br /&gt;I have a text file which initially contains "0".When a new form is opened I increment the value in this text file using the web service and return the new value to the form.&lt;br /&gt;So each time a new form is opened,I have a new Form ID.I call this webservice in the form's onload event.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Abhishek</description></item><item><title>Form ID</title><link>https://www.infopathdev.com:443/forums/thread/5507.aspx</link><pubDate>Thu, 06 Apr 2006 07:39:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5507</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5507.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5507</wfw:commentRss><description>Is there something like a form ID which is unique everytime when the user fills out a new form.&lt;br /&gt;If yes how can I get it.&lt;br /&gt;Thx</description></item></channel></rss>