<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Using textbox entry to set SQL data connected dropdown</title><link>https://www.infopathdev.com:443/forums/thread/103613.aspx</link><pubDate>Fri, 14 Aug 2015 19:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103613</guid><dc:creator>RubyScye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=103613</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;I have a form (InfoPath 2013)&amp;nbsp;that connects to a SQL view with just 2 columns - &amp;nbsp;ItemNum and ItemDesc.&amp;nbsp; I have created the connection in InfoPath and it pulls the data fine (tested with a repeating table to&amp;nbsp; be sure it&amp;#39;s getting all the data).&lt;/p&gt;&lt;p&gt;The backward requirement I have for this form is that there is a textbox (ItemNumberEntered) on the form where the user will type in the Item Number data&amp;nbsp;themselves.&amp;nbsp; &lt;/p&gt;&lt;p&gt;When they type in an item number, I need for another field called ItemDescriptionPulled to populate with the ItemDesc *if* it exists...otherwise it stays&amp;nbsp;blank.&lt;/p&gt;&lt;p&gt;So I have my&amp;nbsp;ItemNumberEntered textbox&amp;nbsp;and my ItemDescriptionPulled rich text field and my SQL&amp;nbsp;view connection.&amp;nbsp; I have tried to set ItemDescriptionPulled&amp;#39;s default value to the ItemDesc&amp;nbsp;where ItemNum = &amp;nbsp;ItemNumberEntered and it stays blank (even when I KNOW the entered number is correct and there is a description).&lt;/p&gt;&lt;p&gt;I have tried to run a rule that when&amp;nbsp;ItemNumberEntered is changed the ItemDescriptionPulled is set to ItemDesc&amp;nbsp;where&amp;nbsp;ItemNum = &amp;nbsp;ItemNumberEntered.&amp;nbsp; It stays empty.&lt;/p&gt;&lt;p&gt;Then I&amp;nbsp;bound the ItemNum from SQL to a dropdown (SQLddHolder), and set it&amp;#39;s default value to be = ItemNumberEntered.&amp;nbsp; This did indeed seem to work and when the textbox ItemNumberEntered changed it changed the dropdown.&lt;/p&gt;&lt;p&gt; I then tried with rules and setting default value on ItemDescriptionPulled to be equal to ItemDesc where ItemNum = SQLddHolder.&amp;nbsp; Nothing -&amp;nbsp;it would stay blank.&amp;nbsp; But if I manually changed the SQLddHolder to some other&amp;nbsp;ItemNum then the ItemDescriptionPulled box would populate with data.&lt;/p&gt;&lt;p&gt;When I did that, I noticed that the text entered by the user would end up in the dropdown list....even if it was already there.&amp;nbsp; So if a user typed in 111-111-001, the dropdown would look like it populated correctly, but if you expand the dropdown there are now 2 entries of that number.&amp;nbsp; The first one leaves the ItemDescriptionPulled blank, but change it to the&amp;nbsp;other one and the data populates like it should.&lt;br /&gt;I&amp;#39;ve done Google searches and this apparently should not be such a difficult and time consuming setup.&amp;nbsp; I even found this thread - &lt;a href="http://www.infopathdev.com/forums/p/28187/97316.aspx"&gt;http://www.infopathdev.com/forums/p/28187/97316.aspx&lt;/a&gt;&amp;nbsp;but nothing I&amp;#39;ve tried is working rules or otherwise.&lt;/p&gt;&lt;p&gt;I hope I explained it clearly enough....Is there something&amp;nbsp;I&amp;#39;m missing to get this to work?&amp;nbsp; It seems like it should be a quick and easy thing.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for any help/suggestions,&lt;br /&gt;Ruby&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>