<?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: How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37110.aspx</link><pubDate>Thu, 15 Jan 2009 00:44:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37110</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37110</wfw:commentRss><description>&lt;p&gt;And what I am suggesting is that you click on the EmpName field in your data source task pane (where you clicked on the group for the repeating table) and set the default value to equal the data node that the drop down you created is bound to. That way, when they select the value from the drop down, all the rows in the repeating table get set to that. I&amp;#39;m including a simple sample form with this post -- just right click the link in the header to the post, select &amp;#39;Save Target As&amp;#39; and save the file locally. Open in design mode and preview the form to see how it works....&lt;/p&gt;</description></item><item><title>Re: How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37108.aspx</link><pubDate>Thu, 15 Jan 2009 00:26:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37108</guid><dc:creator>Ychhoker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37108</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Thanks a lot for the reply. Assume i have a simle Table in database emptable with &amp;quot;EmpName&amp;quot;, &amp;quot;TaskName&amp;quot; and &amp;quot;Hours&amp;quot; Column. When i design a form i add a drop down list and enter values manually into this drop down list ( e.g. &amp;quot;John&amp;quot;, &amp;quot;Mark&amp;quot; etc). Then i select datasource, right click and select repeating table. This repeating table have all the three columns, &amp;quot;EmpName&amp;quot;, &amp;quot;TaskName&amp;quot;, &amp;quot;Hours&amp;quot;. Now i delete EmpName column from the repeating table to avoid duplication of information.&lt;/p&gt;
&lt;p&gt;So when user opens this form, he/she can select his/her name from the drop downlist and then enter values in TaskName and Hours. Then click on Insert item and add one more row to repeating table. Again enter value for TaskName and Hours. Now there are two rows in repeating table. If user hit submit button the values that goes to table is &lt;/p&gt;
&lt;p&gt;EmpName, TaskName, Hours for the first row but for second row only TaskName and Hours. So what i want to achieve is that whatever value is selected in EmpName dropdown list that value should get inserted to database for each row on submit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot for for your patience to read it all through :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37094.aspx</link><pubDate>Wed, 14 Jan 2009 21:28:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37094</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37094</wfw:commentRss><description>&lt;p&gt;In your data source task pane for the form, I&amp;#39;d guess that the employee name field is in the top group and also repeated in the group which your repeating table is based off of -- is that correct? If so, you could set the default value for that &amp;#39;child&amp;#39; EmpName field to be the same as the higher level field that your EmpName drop down is bound to.... does that make sense?&lt;/p&gt;</description></item><item><title>Re: How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37090.aspx</link><pubDate>Wed, 14 Jan 2009 21:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37090</guid><dc:creator>Ychhoker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37090.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37090</wfw:commentRss><description>&lt;p&gt;Hi Frederik,&lt;/p&gt;
&lt;p&gt;Thanks a lot for replying. But i want to save this data into database. What i want is user opens this form. Select his/her name from EmpName drop down list.&lt;/p&gt;
&lt;p&gt;And in the repeating&amp;nbsp;table add a row, fill Task and Hours. Insert one more row and fill&amp;nbsp;Task and Hours and then hit submit button.&lt;/p&gt;
&lt;p&gt;
&lt;table class="" style="WIDTH:157pt;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0"&gt;




&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl23" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext 0.5pt solid;BORDER-LEFT:windowtext 0.5pt solid;WIDTH:109pt;BORDER-BOTTOM:windowtext 0.5pt solid;HEIGHT:12.75pt;BACKGROUND-COLOR:silver;" class="xl23"&gt;&lt;strong&gt;EmpName&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext 0.5pt solid;BORDER-LEFT:windowtext;WIDTH:48pt;BORDER-BOTTOM:windowtext 0.5pt solid;BACKGROUND-COLOR:transparent;" class="xl22"&gt;John&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext 0.5pt solid;BORDER-BOTTOM:windowtext 0.5pt solid;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl22"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext;BORDER-BOTTOM:windowtext 0.5pt solid;BACKGROUND-COLOR:transparent;" class="xl22"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl23" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext 0.5pt solid;BORDER-BOTTOM:windowtext 0.5pt solid;HEIGHT:12.75pt;BACKGROUND-COLOR:silver;" class="xl23"&gt;&lt;strong&gt;Task&lt;/strong&gt;&lt;/td&gt;
&lt;td class="xl23" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext;BORDER-BOTTOM:windowtext 0.5pt solid;BACKGROUND-COLOR:silver;" class="xl23"&gt;&lt;strong&gt;Hours&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext 0.5pt solid;BORDER-BOTTOM:windowtext 0.5pt solid;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl22"&gt;Team Meeting&lt;/td&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext;BORDER-BOTTOM:windowtext 0.5pt solid;BACKGROUND-COLOR:transparent;" align="right" class="xl22"&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="HEIGHT:12.75pt;"&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext 0.5pt solid;BORDER-BOTTOM:windowtext 0.5pt solid;HEIGHT:12.75pt;BACKGROUND-COLOR:transparent;" class="xl22"&gt;Bug Fixing&lt;/td&gt;
&lt;td class="xl22" style="BORDER-RIGHT:windowtext 0.5pt solid;BORDER-TOP:windowtext;BORDER-LEFT:windowtext;BORDER-BOTTOM:windowtext 0.5pt solid;BACKGROUND-COLOR:transparent;" align="right" class="xl22"&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Now when submit button is hit,&amp;nbsp;the data that goes to database is&lt;/p&gt;
&lt;p&gt;Empname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task&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; Hrs&lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TeamMeeting &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bug Fixing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-----------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;But what i want is&lt;/p&gt;
&lt;p&gt;Empname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task&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; Hrs&lt;/p&gt;
&lt;p&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TeamMeeting &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;John&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;Bug Fixing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope you can understand my problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37054.aspx</link><pubDate>Wed, 14 Jan 2009 10:45:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37054</guid><dc:creator>Frederik Van Lierde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37054</wfw:commentRss><description>&lt;p&gt;First Submit Button is not the way to go, as Submit is used to submit the data to a dataconnection, like webservice, sharepoint, xml file&lt;br /&gt;&lt;br /&gt;When exactly do you want to reach, when the user selects an item from the dropdown, it shows the information, do you want the user to update/change the information,&amp;nbsp; or is it just for showing ?&lt;/p&gt;
&lt;p&gt;If you give me more info I can bring you into the right direction.&lt;/p&gt;
&lt;p&gt;One hint already is to use filters when the value of the dropdown is changed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to use the value of one field in mutiple record when updating database</title><link>https://www.infopathdev.com:443/forums/thread/37042.aspx</link><pubDate>Tue, 13 Jan 2009 21:41:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37042</guid><dc:creator>Ychhoker</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37042</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using Infopath2003 still taking baby steps to get familiar with Infopath and&amp;nbsp;i have mixed success.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DataSource Details: SQL Server&lt;/p&gt;
&lt;p&gt;Table1 have empid and empname&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Table2 have empname, task, hours. These two tables have relationshiop on empname column.&lt;/p&gt;
&lt;p&gt;The issue that i am facing is that i want to create a time card form which&amp;nbsp;look like this.&lt;/p&gt;
&lt;p&gt;Employee name as drop down list. This field is populated from&amp;nbsp;SQL Server database.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A&amp;nbsp;repeating table having &amp;quot;task&amp;quot; and &amp;quot;hours&amp;quot; column.&lt;/p&gt;
&lt;p&gt;So whenever a user open this form, he/she can select his/her name and then add rows to repeating table. And then click on submit button.&lt;/p&gt;
&lt;p&gt;Now when user hit submit button what i want is that Table2 should get populated with &amp;quot;empname, task, hours&amp;quot; for each record. But this is not happening.&lt;/p&gt;
&lt;p&gt;empname is getting inserted for first record only. Other records have empname as blank. How can i make infopath to insert records with empname for every row in this form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot in advance :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>