<?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: add new data to sql table that has a foreign key relationship with another table</title><link>https://www.infopathdev.com:443/forums/thread/59597.aspx</link><pubDate>Mon, 04 Oct 2010 21:00:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59597</guid><dc:creator>jenfi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59597</wfw:commentRss><description>&lt;p&gt;nobody knows how to do this?&lt;/p&gt;</description></item><item><title>add new data to sql table that has a foreign key relationship with another table</title><link>https://www.infopathdev.com:443/forums/thread/59553.aspx</link><pubDate>Sat, 02 Oct 2010 23:28:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59553</guid><dc:creator>jenfi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59553</wfw:commentRss><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i want to know how can i add new records to a sql database table that has a foreign key relationship with another table using infopath form.&lt;/p&gt;
&lt;p&gt;i have created a blank form based on database&lt;/p&gt;
&lt;p&gt;i have all my fields and the &amp;quot;add new&amp;quot; button already in the form.&lt;/p&gt;
&lt;p&gt;i have the username and the userid&amp;nbsp; and some other fields filled in automatically when the user opens the form.&lt;/p&gt;
&lt;p&gt;i want that the user does not have to fill in his name, id and some other fields everytime he opens the form. &lt;/p&gt;
&lt;p&gt;only a part of the form like new vacation days must be filled in as new. so when&amp;nbsp;the user&amp;nbsp;click on the &amp;quot;add new&amp;quot; button i dont want that it clears all the fields. i want it to only set the new vacation days as new fields to fill in. &lt;/p&gt;
&lt;p&gt;when i fill in the form with new data and click submit. it gives me this error:&lt;/p&gt;
&lt;p&gt;Field or group: BE_CODE&lt;br /&gt;Error: Only integers allowed&lt;/p&gt;
&lt;p&gt;this &amp;quot;BE_CODE&amp;quot; field has to be filled in the database table, it can not be null. but it must not be filled in by the user it self. and it is a repeating table so it can not be auto increment.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is there an easy way to do this?&lt;/p&gt;</description></item></channel></rss>