<?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: Use secondary data source as drop_down list box description, but not submit to main data source</title><link>https://www.infopathdev.com:443/forums/thread/50035.aspx</link><pubDate>Fri, 18 Dec 2009 04:37:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50035</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50035</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please have a look at this thread:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/12113/49879.aspx#49879"&gt;http://www.infopathdev.com/forums/p/12113/49879.aspx#49879&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Use secondary data source as drop_down list box description, but not submit to main data source</title><link>https://www.infopathdev.com:443/forums/thread/50032.aspx</link><pubDate>Fri, 18 Dec 2009 03:41:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50032</guid><dc:creator>GregAppelt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50032</wfw:commentRss><description>&amp;nbsp;I&amp;#39;ve done alot of searching, but I can&amp;#39;t seem to find an explanation to a simple issue.&amp;nbsp; Here&amp;#39;s my scenario:&lt;p&gt;SQL 2008 Database with the following tables:&lt;br /&gt;
Table &amp;#39;EMPL&amp;#39;:&amp;nbsp; &amp;nbsp; Column 1 &amp;#39;EMPL_ID&amp;#39; int PK, Column2 &amp;#39;EMPL_NAME&amp;#39; varchar(20)&lt;br /&gt;
Table &amp;#39;EMPL_DED&amp;#39;:&amp;nbsp;&amp;nbsp;&amp;nbsp; Column 1 &amp;#39;EMPL_DED_INDEX&amp;#39; int PK, Column 2 &amp;#39;EMPL_ID&amp;#39; int, Column 3 &amp;#39;DED_CD&amp;#39; int&lt;br /&gt;
Table &amp;#39;DED_DESC&amp;#39;:&amp;nbsp;&amp;nbsp;&amp;nbsp; Column 1 &amp;#39;DED_CD&amp;#39; int PK, Column 2 &amp;#39;DED_DESC&amp;#39; varchar(20)&lt;/p&gt;&lt;p&gt;explanation
of field names: EMPL = Employee, EMPL_ID = Employee_ID, EMPL_DED =
Employee Deductions, DED_CD = Deduction Code, DED_DESC = Deduction
Description&lt;br /&gt;
Relationships:&amp;nbsp; EMPL.EMPL_ID = EMPL_DED.EMPL_ID&amp;nbsp;&amp;nbsp; and EMPL_DED.DED_CD = DED_DESC.DED_CD&lt;/p&gt;&lt;p&gt;&amp;nbsp;Infopath Data Source (Main) type:Submit &amp;nbsp; Default table: EMPL with table EMPL_DED linked based on EMPL_ID&lt;br /&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; Secondary Data Source type: Receive&amp;nbsp;&amp;nbsp;&amp;nbsp; Table: DED_DESC&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;Infopath Form:&lt;br /&gt;
Query Section: TextBox &amp;#39;EMPL_ID&amp;#39; Datasource(Main).Binding(MyFields&amp;nbsp;&amp;nbsp; .q:EMPL&amp;nbsp;&amp;nbsp; .EMPL_ID&lt;br /&gt;
Record Section: &amp;#39;Repeating Section&amp;#39; Datasource(Main).Binding(MyFields&amp;nbsp;&amp;nbsp; .d:EMPL&amp;nbsp;&amp;nbsp; .EMPL_ID,&amp;nbsp;&amp;nbsp; .EMPL_NAME&lt;br /&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; within Repeating Section &amp;#39;Repeating Table&amp;#39;&amp;nbsp;&amp;nbsp; TextBox
EMPL_DED&amp;nbsp; Datasource(Main).Binding(MyFields&amp;nbsp;&amp;nbsp; .d:EMPL(Group:Repeating)&amp;nbsp;
.EMPL_DED(Group:Repeating)&amp;nbsp; .DED_CD&lt;/p&gt;&lt;p&gt;When I run this form it works
100%.&amp;nbsp; When I query an employee&amp;#39;s ID, I get back the Employee ID,
Employee Name, and in a repeating table, a list of all of the Deduction
Codes that the employee has a record for in the EMPL_DED table.&amp;nbsp; &lt;/p&gt;&lt;p&gt;My
problem is that I would like to include the DED_DESC field next to each
of the DED_CD fields in the repeating table.&amp;nbsp; Not to be used as
submission data, but simply to present an understandable description to
the deduction code.&amp;nbsp; I&amp;#39;ve gotten it to work 1 time, but I don&amp;#39;t
remember how.&amp;nbsp; But then I broke it when I tried to figure out how to
add a new entry to the repeating table, or even to set the DED_CD field
as a&amp;nbsp; drop-down list that displayed both the DED_CD and DED_DESC.&lt;/p&gt;I&amp;#39;d be happy to send you my simple SQL database and current form if that would help at all.</description></item></channel></rss>