<?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>Re: Drop down returns</title><link>https://www.infopathdev.com:443/forums/thread/26136.aspx</link><pubDate>Thu, 31 Jan 2008 22:56:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26136</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=26136</wfw:commentRss><description>&lt;p&gt;How would I set a default?&amp;nbsp; Even if I wanted to do that?&lt;/p&gt;
&lt;p&gt;I deleted the data connection and recreated it and updated the ODC connection&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Still same issue, even if binding on a different field&lt;/p&gt;
&lt;p&gt;I also tried creating a brand new form and added a drop down to the same database and same condition.&lt;/p&gt;
&lt;p&gt;I am lost.&lt;/p&gt;
&lt;p&gt;Here is the text form the view.xsl that deals with the drop down.&amp;nbsp; Could my filters be causing the issue?&lt;/p&gt;
&lt;p&gt;I also opened the template.xsl and when that opened in InfoPath, the drop down behaved normally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;select class=&amp;quot;&lt;b&gt;xdComboBox xdBehavior_Select&lt;/b&gt;&amp;quot; title=&amp;quot;&amp;quot; style=&amp;quot;&lt;b&gt;WIDTH: 100%; FONT-FAMILY: Arial&lt;/b&gt;&amp;quot; size=&amp;quot;&lt;b&gt;1&lt;/b&gt;&amp;quot; xd:CtrlId=&amp;quot;&lt;b&gt;CTRL25&lt;/b&gt;&amp;quot; xd:xctname=&amp;quot;&lt;b&gt;DropDown&lt;/b&gt;&amp;quot; xd:boundProp=&amp;quot;&lt;b&gt;value&lt;/b&gt;&amp;quot; xd:binding=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; value=&amp;quot;&amp;quot; tabIndex=&amp;quot;&lt;b&gt;0&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:attribute name=&amp;quot;&lt;b&gt;value&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:attribute&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:choose&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:when test=&amp;quot;&lt;b&gt;function-available(&amp;#39;xdXDocument:GetDOM&amp;#39;)&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;option /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:variable name=&amp;quot;&lt;b&gt;val&lt;/b&gt;&amp;quot; select=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:if test=&amp;quot;&lt;b&gt;not(xdXDocument:GetDOM(&amp;quot;tblMMIBuckItems&amp;quot;)/dfs:myFields/dfs:dataFields/d:tblMMIBuckItems[not(@ItemName = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblMMIBucktemsordered/@ItemName)][@ItemName=$val] or $val=&amp;#39;&amp;#39;)&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;option selected=&amp;quot;&lt;b&gt;selected&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:attribute name=&amp;quot;&lt;b&gt;value&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;$val&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:attribute&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;$val&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/option&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:if&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:for-each select=&amp;quot;&lt;b&gt;xdXDocument:GetDOM(&amp;quot;tblMMIBuckItems&amp;quot;)/dfs:myFields/dfs:dataFields/d:tblMMIBuckItems[not(@ItemName = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblMMIBucktemsordered/@ItemName)]&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;option&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:attribute name=&amp;quot;&lt;b&gt;value&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:attribute&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:if test=&amp;quot;&lt;b&gt;$val=@ItemName&lt;/b&gt;&amp;quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:attribute name=&amp;quot;&lt;b&gt;selected&lt;/b&gt;&amp;quot;&amp;gt;selected&amp;lt;/xsl:attribute&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:if&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/option&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:for-each&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:when&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;xsl:otherwise&amp;gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/EditPost.aspx?PostID=26136&amp;amp;ReturnUrl=%2fforums%2fp%2f7146%2f26136.aspx%2326136#"&gt;-&lt;/a&gt; &amp;lt;option&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;&lt;b&gt;@ItemName&lt;/b&gt;&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/option&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:otherwise&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:choose&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/select&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/font&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/div&amp;gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;/td&amp;gt;&lt;/p&gt;</description></item><item><title>Re: Drop down returns</title><link>https://www.infopathdev.com:443/forums/thread/26135.aspx</link><pubDate>Thu, 31 Jan 2008 21:50:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26135</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26135.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=26135</wfw:commentRss><description>&lt;p&gt;You sure you do not have a default set or something?&amp;nbsp; They typically will start blank. Then you select from the drop down. The field should be blank initially unless you are setting it from somewhere or have a default.&amp;nbsp; This can get corrupted and if you export your source files you can check the view.xsl.&amp;nbsp;I saw a post recently with the same issue. Try binding to a different field and see if you get the same thing.&lt;/p&gt;</description></item><item><title>Drop down returns</title><link>https://www.infopathdev.com:443/forums/thread/26124.aspx</link><pubDate>Thu, 31 Jan 2008 18:45:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26124</guid><dc:creator>oldradio99</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=26124</wfw:commentRss><description>&lt;p&gt;I have searched this forum high and low. Did you ever know that you used something that works but then you cant remember how you did it? Well that is me right now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a drop down being populated from a data connection to a simple SQL table. What I want is for the drop down to be blank with no selection when the form opens. Right now it shows the first item in the table. Sort of like the &amp;quot;select one&amp;quot; when you manually populate a drop down. &lt;/p&gt;
&lt;p&gt;It works on all my other forms but I am stumped how I did it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>