<?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: Importing Data Fields From Database and Incrementing Values</title><link>https://www.infopathdev.com:443/forums/thread/53087.aspx</link><pubDate>Wed, 24 Mar 2010 15:59:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53087</guid><dc:creator>nemadrias</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53087.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53087</wfw:commentRss><description>&lt;p&gt;Got it now - had to remove the formula from the data field for scanID that was trying to increment max +1.&amp;nbsp; Thanks for your help it&amp;#39;s looking good now!&lt;/p&gt;</description></item><item><title>Re: Importing Data Fields From Database and Incrementing Values</title><link>https://www.infopathdev.com:443/forums/thread/53018.aspx</link><pubDate>Tue, 23 Mar 2010 00:43:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53018</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53018.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53018</wfw:commentRss><description>&lt;p&gt;This is a database bound form, right? Created from a database? And the scanId field is set up as an auto-incrementing identiy column? I haven&amp;#39;t worked much with DB bound forms lately, but I if I recall correctly, this scenario should just work -- InfoPath knows the Id will come from SQL when the form is submitted, and doesn&amp;#39;t worry about the field being blank. Are you having a different result?&lt;/p&gt;</description></item><item><title>Re: Importing Data Fields From Database and Incrementing Values</title><link>https://www.infopathdev.com:443/forums/thread/52992.aspx</link><pubDate>Mon, 22 Mar 2010 14:39:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52992</guid><dc:creator>nemadrias</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52992</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s probably not essential that the user knows the scanID before being submitted to the database...However, when I have the field in the database, it automatically looks for data from the form for a scanID...How would you go about submitting the data from the form, and not having the form expect a scanID, but auto-incrementing it?&amp;nbsp; Thanks for your help!&lt;/p&gt;
&lt;p&gt;Steve&lt;/p&gt;</description></item><item><title>Re: Importing Data Fields From Database and Incrementing Values</title><link>https://www.infopathdev.com:443/forums/thread/52960.aspx</link><pubDate>Fri, 19 Mar 2010 20:59:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52960</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52960</wfw:commentRss><description>&lt;p&gt;There are a couple possible issues with this. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Since the scanId column is auto-incrementing, I anticipate either SQL or InfoPath will complain if you try to set the value yourself&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The scanId is created when the data is submitted. If you set it when you open the form, you could have issues with mutiple rows having the same scanId. For example:&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;User A opens form, scanId set to max(scanId) + 1. Since the max is currently 2, User A gets a 3 for scanId&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;While User A has the form open, and before User A has submitted his form, User B opens the form, and scanId is set to .... 3, because max(scanId) in your database is still 2&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;
&lt;p&gt;Is it really necessary for the user to know the scanId prior to the data being submitted to the database? &lt;/p&gt;</description></item><item><title>Importing Data Fields From Database and Incrementing Values</title><link>https://www.infopathdev.com:443/forums/thread/52959.aspx</link><pubDate>Fri, 19 Mar 2010 19:40:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52959</guid><dc:creator>nemadrias</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52959</wfw:commentRss><description>&lt;p&gt;I have a database which I am publishing data to from an Infopath form.&amp;nbsp; I&amp;#39;m able to input all of the data without a problem,&amp;nbsp;and just added an&amp;nbsp;auto-incrementing primary key (scan ID) in the database table.&amp;nbsp; I also want to show that ID (so it would be the max ID in the table +1) every time the form&amp;nbsp;is opened to add a record to the database...&lt;/p&gt;
&lt;p&gt;SO...if the current records in the table were:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Scan ID&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 1&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field 3&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah3&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;blah&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah3&lt;/p&gt;
&lt;p&gt;Therefore, when the form is opened, I would need it to be:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Scan ID:&amp;nbsp; 3 ---&amp;gt; this field would autopopulate max(scanID) +1&lt;/p&gt;
&lt;p&gt;Then my input data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Once submitted, the data would be sent to the database....does this make sense?&amp;nbsp; Let me know if I can clarify.&amp;nbsp; Thanks!&lt;/p&gt;</description></item></channel></rss>