<?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: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/36111.aspx</link><pubDate>Fri, 19 Dec 2008 17:56:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36111</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=36111</wfw:commentRss><description>&lt;p&gt;Sorry I was so slow getting back to you!&amp;nbsp; I tried it, but for whatever reason, it never populated.&amp;nbsp; I can set it up to query the DB ID field, and then add 1 to the number, but that gives us the problem of before - if it doesn&amp;#39;t write immeditately, then there could be 10 number 1 forms before one ever gets written to the DB.&amp;nbsp; Which brings up another question, say I do set it up to write when submitted the first time (it&amp;#39;s set to begin a workflow now), can you overwrite a record, or will SQL Server yell at your about duplicate ID fields?&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/36067.aspx</link><pubDate>Thu, 18 Dec 2008 23:21:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36067</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=36067</wfw:commentRss><description>&lt;p&gt;Sorry I was slow getting back to you on this. What happens when you try the formula above?&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35909.aspx</link><pubDate>Wed, 17 Dec 2008 14:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35909</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35909</wfw:commentRss><description>&lt;p&gt;You nailed it on the head.&amp;nbsp;&amp;nbsp;I know there&amp;#39;s a way to retrieve the Sharepoint ID for the file and use a rule to set the value of the field equal&amp;nbsp;to that plus 1.&amp;nbsp; I&amp;#39;m guessing it&amp;#39;s max(@ID) + 1, however I haven&amp;#39;t been able to get it to work quite yet.&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35863.aspx</link><pubDate>Tue, 16 Dec 2008 21:43:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35863</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35863.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35863</wfw:commentRss><description>&lt;p&gt;So up until the last section is filled out, the form info doesn&amp;#39;t go to the DB. Yet you need a unique ID that the form can use in its name for the entire life of the form.... But since the form isn&amp;#39;t submitted to SQL until the end of its activity, querying the SQL table that you store them in could surely lead to duplicate IDs. After all, it could be weeks between the initial query for the max ID and the submittal of the form -- with no way of knowing how many other forms had been started between those two things. Is there anything in SharePoint that you could use for this, I wonder? &lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35850.aspx</link><pubDate>Tue, 16 Dec 2008 18:41:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35850</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35850</wfw:commentRss><description>&lt;p&gt;The form submits to Sharepoint only until the very last section is filled out.&amp;nbsp; At that point, there&amp;#39;s a button that submits to both Sharepoint with a read only version (overwriting the R/W version) and sends the data to the SQL DB.&amp;nbsp; I have the information being submitted via rules.&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35847.aspx</link><pubDate>Tue, 16 Dec 2008 18:20:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35847</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35847</wfw:commentRss><description>&lt;p&gt;Where all does your form submit? Do you submit via rules? You could submit just to the DB, get the ID back, set the form&amp;#39;s name and sumbit to SharePoint, for example. Just a thought.&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35844.aspx</link><pubDate>Tue, 16 Dec 2008 18:04:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35844</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35844</wfw:commentRss><description>&lt;p&gt;But I need the filename to&amp;nbsp;contain the ID because multiple people will be going in and out of this form as it makes it&amp;#39;s way through it&amp;#39;s approval workflow.&amp;nbsp; The ID is set up in the DB as an autonumber.&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35839.aspx</link><pubDate>Tue, 16 Dec 2008 17:52:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35839</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35839</wfw:commentRss><description>&lt;p&gt;Well, you will greatly reduce the chance of a multiple IDs if the query is run on submit, yes... Or, you know... Are you submitting to a DB? Can you add an auto-id column to the table you submit to? Then you don&amp;#39;t have to try to grab a max and add one or anything like that.... the form would get its ID on submit....&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35838.aspx</link><pubDate>Tue, 16 Dec 2008 17:46:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35838</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35838</wfw:commentRss><description>&lt;p&gt;I never doubted they didn&amp;#39;t work, the complicated formula you banged out for me awhile back&amp;nbsp;made sure to that.&amp;nbsp; The same ID issue could be fixed if the query is run on click of the submit button, right?&lt;/p&gt;</description></item><item><title>Re: InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35825.aspx</link><pubDate>Tue, 16 Dec 2008 15:37:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35825</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35825</wfw:commentRss><description>&lt;p&gt;Just to clarify -- the create statements for the sprocs in my blog post &lt;strong&gt;*do*&lt;/strong&gt; work in SQL Server Management Studio.... but TOAD doesn&amp;#39;t seem to like them. When you say &amp;#39;I have no idea how to modify the query&amp;#39;s results&amp;#39; -- couldn&amp;#39;t you just use the field in a formula? Say, in the default value for the form field that will hold the ID? The other thing you can do is edit the SQL in a regular InfoPath receive data connection... something like &amp;#39;SELECT MAX(columnname) + 1 as ID FROM tablename&amp;#39;.&lt;/p&gt;
&lt;p&gt;Of course, that has the risk of two forms with the same ID -- there is always the chance that User A and User B will open a new form and the query will run before either of them has submitted....&lt;/p&gt;</description></item><item><title>InfoPath autonumber field</title><link>https://www.infopathdev.com:443/forums/thread/35822.aspx</link><pubDate>Tue, 16 Dec 2008 15:22:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35822</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35822</wfw:commentRss><description>&lt;p&gt;I want to make a read-only autonumber field in my form.&amp;nbsp; I knwo there&amp;#39;s a lot of infomation out there covering autonumbers in Infopath, but none of it seems to fit my problem.&amp;nbsp; Please help I&amp;#39;ve been looking for days.&lt;/p&gt;
&lt;p&gt;I need a read-only field that autonumbers on Submit.&amp;nbsp; I thought I could do it by querying the SQL DB, and adding 1 to the result, but I have no idea how to modify the query&amp;#39;s results.&amp;nbsp; I also know I can set up a custom workflow for an autonumbering sequence, but there&amp;#39;s no way IT would let me get ahold of Sharepoint Designer.&amp;nbsp; This field makes up part of my file name, and it also needs to write back to form&amp;#39;s SQL table.&amp;nbsp; Hilary Stoupa&amp;#39;s article (&lt;a class="" title="here" href="http://www.infopathdev.com/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx" target="_blank"&gt;here&lt;/a&gt;) would have been perfect I think, but the code for the sprocs doesn&amp;#39;t work - Toad spits back an error saying &amp;quot;Invalid syntax near &amp;#39;Procedure&amp;#39;&amp;quot; on the first sproc.&amp;nbsp; Any ideas would help greatly, it&amp;#39;s the last thing I need to do on this form!&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="here" href="http://www.infopathdev.com/blogs/hilary/archive/2008/11/21/fun-with-sequential-form-ids-sql-and-sprocs.aspx" target="_blank"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>