<?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: ComboBox Lookup from SQL DB</title><link>https://www.infopathdev.com:443/forums/thread/42773.aspx</link><pubDate>Thu, 11 Jun 2009 15:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42773</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42773</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;dannyduke:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The comboxbox is set to list items from the database, with its ID as the display value and description as the selected value. The textbox is bound to combobox, so when the ID is selected the description is loaded into the textbox. - This works really well.&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;This doesn&amp;#39;t sound right to me.&amp;nbsp; Typically you would want to have the ID as the value in the field bound to the dropdown, because it is unique.&amp;nbsp; This is especially the case if the description is going to be changing in the database! 
&lt;p&gt;I&amp;#39;d say that&amp;#39;s the source of your problem.&amp;nbsp; I would suggest using the ID as the selected value for the dropdown (and the display value if that&amp;#39;s the way you want it) and then use an expression box or textbox with an XPath formula to show the description on the form.&lt;/p&gt;</description></item><item><title>ComboBox Lookup from SQL DB</title><link>https://www.infopathdev.com:443/forums/thread/42757.aspx</link><pubDate>Thu, 11 Jun 2009 12:31:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42757</guid><dc:creator>dannyduke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42757</wfw:commentRss><description>Normal
  0
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}



&lt;p&gt;&amp;nbsp;Dear all,&lt;/p&gt;

&lt;p&gt;I would kindly appreciate any advice anyone has to offer.&lt;/p&gt;

&lt;p&gt;I&amp;#39;m currently creating a form with a repeating section, within the section
there is combobox and a textbox.&lt;/p&gt;

&lt;p&gt;The comboxbox is set to list items from the database, with its ID as the display
value and description as the selected value. The textbox is bound to combobox,
so when the ID is selected the description is loaded into the textbox. - This
works really well.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The form is then saved.&lt;/p&gt;

&lt;p&gt;The problem occurs when the description is updated within the database, when
the form is re-opened it does not update the information unless I re-select it
from the combobox. Is there a way to automate this?&lt;/p&gt;

&lt;p&gt;Oh and just to add, we are not submitting data back, simply showing it
within the form.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;I&amp;#39;m using IP 2003.&lt;/p&gt;

&lt;p&gt;Thanks. &lt;/p&gt;</description></item></channel></rss>