<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/98565.aspx</link><pubDate>Mon, 04 Aug 2014 18:03:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98565</guid><dc:creator>PaulaKern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=98565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What could I do if these choices are filtered for a particular user?&amp;nbsp; I can get the default but it gives me all and not just the ones for the particular filter?&amp;nbsp; Thanks for any direction you can give.&lt;/p&gt;</description></item><item><title>Re: When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/72580.aspx</link><pubDate>Thu, 01 Dec 2011 20:17:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72580</guid><dc:creator>canadiense</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72580.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=72580</wfw:commentRss><description>&lt;p&gt;Hilary, &lt;/p&gt;&lt;p&gt;Excellent!&amp;nbsp; Thanks a million!&lt;/p&gt;&lt;p&gt;My issue was I have a different Value vs Display Name ... going through the logic you described got me to readjust my focus and then I got &amp;#39;er working! ;)&lt;/p&gt;&lt;p&gt;Chris.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/72555.aspx</link><pubDate>Thu, 01 Dec 2011 17:01:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72555</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=72555</wfw:commentRss><description>&lt;p&gt;InfoPath doesn&amp;#39;t care if the secondary data source has one or a hundred rows - the XPath to the field is going to return the first node, unless you&amp;#39;ve specified with a filter which row you want.&lt;/p&gt;&lt;p&gt;So, let&amp;#39;s say I have a secondary data source called &amp;quot;Cities&amp;quot;. It has a field called City.&lt;/p&gt;&lt;p&gt;The XPath looks like:&lt;/p&gt;&lt;p&gt;Cities/Row/City&lt;/p&gt;&lt;p&gt;Row is repeating.&lt;/p&gt;&lt;p&gt;My main data source field is called SelectedCity. It is bound to a dropdown control.&lt;/p&gt;&lt;p&gt;The dropdown uses my Cities data source to provide the values to the dropdown.&lt;/p&gt;&lt;p&gt;If I set the default value for SelectedCity (my main data source field) to my secondary data source field:&lt;/p&gt;&lt;p&gt;Cities/Row/City&lt;/p&gt;&lt;p&gt;SelectedCity will always default to the first entry in that data source. &lt;/p&gt;&lt;p&gt;Does this make sense? If not, I can put together a quick sample form.&lt;/p&gt;</description></item><item><title>Re: When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/72549.aspx</link><pubDate>Thu, 01 Dec 2011 13:42:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72549</guid><dc:creator>canadiense</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=72549</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;First off - thanks for taking the time to answer! Always appreciated! :)&lt;/p&gt;&lt;p&gt;The issue with what you&amp;#39;ve suggested - I never know what that exact value will be.&amp;nbsp; Suppose I have a drop-down list set to go off and get a list of the US Cities today where the temperature was over 80 degrees - States[Temperature &amp;gt; 80].&amp;nbsp; Every day that might be different. But what I want is for it to choose by default the &amp;#39;top&amp;#39; city on the list.&amp;nbsp; So if there is only 1 (Las Vegas let&amp;#39;s say), I don&amp;#39;t want to have to click in that cell to actually choose Las Vegas - it will be chosen by default.&amp;nbsp; And if there are more than 1 (Reno and Dallas let&amp;#39;s say), I want it to automatically choose the one that&amp;#39;s on top of the list (Dallas if I&amp;#39;ve got it sorted correctly) and if I don&amp;#39;t bother clicking, it will choose Dallas by default.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But maybe I&amp;#39;m misinterpreting what you&amp;#39;re saying which is normally my issue ...&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/72497.aspx</link><pubDate>Wed, 30 Nov 2011 16:07:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72497</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=72497</wfw:commentRss><description>It actually sounds to me as if you want the same scenario to occur in all instances - if there is just one option, default to that, and if there are many options, default to the first - since the first case (only one option) is equivalent to the second case, this is really straightforward. Just set the default value of your main data source field to the field desired in the secondary data source. By default, if that field repeats, InfoPath should always choose the first instance.</description></item><item><title>When only a single entry in drop-down, make it the default</title><link>https://www.infopathdev.com:443/forums/thread/72493.aspx</link><pubDate>Wed, 30 Nov 2011 13:56:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72493</guid><dc:creator>canadiense</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72493.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=72493</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;If I&amp;#39;ve got a drop-down list that pulls its entries from an external connection.&lt;/p&gt;&lt;p&gt;When it discovers only a SINGLE ENTRY for that list which is different every time and can&amp;#39;t be hard-coded into a rule, I&amp;#39;d like it to auto-populate the field with that entry.  This can&amp;#39;t be too difficult, can it? :)&lt;/p&gt;&lt;p&gt;Similarly, if there is more than one item in the drop-down, is there a way to get it to push the top option as the default?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>