<?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: Populate a Dropdown on condition</title><link>https://www.infopathdev.com:443/forums/thread/21359.aspx</link><pubDate>Sat, 30 Jun 2007 11:01:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21359</guid><dc:creator>saudak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=21359</wfw:commentRss><description>&lt;p&gt;Thanx clay&lt;/p&gt;&lt;p&gt;I came up with a the way ... the problem with me is, I start writing code before starting to see the control formatting in InfoPath itself.&lt;/p&gt;&lt;p&gt;I made it into one datasource with onother field on which I added a filter and it worked.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populate a Dropdown on condition</title><link>https://www.infopathdev.com:443/forums/thread/21352.aspx</link><pubDate>Fri, 29 Jun 2007 15:07:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21352</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=21352</wfw:commentRss><description>The simple, basic way to do this is just to have both drop downs, B_1 and B_2 on the view but Hide them both until A is chosen and then do not show the&amp;nbsp;one you don&amp;#39;t need. So depending on A&amp;#39;s value show the corresponding B dropdown and keep the other hidden and vice versa. I am not sure having a dynamic drop down from two seperate tables is possible but this is a lot simpler and the user would never know the difference.</description></item><item><title>Populate a Dropdown on condition</title><link>https://www.infopathdev.com:443/forums/thread/21337.aspx</link><pubDate>Thu, 28 Jun 2007 16:09:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21337</guid><dc:creator>saudak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=21337</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have 3 datasources A , B_1 and B_2, I have 2 dropdown lists drpA and drpB, I populate drpA with datasource A, Based on the value of drpA, I need to load drpB with B_1 or B_2&lt;/p&gt;&lt;p&gt;Like:&lt;/p&gt;&lt;p&gt;in drpA if the selected value is 1 I have to load B_1 in drpB else&lt;/p&gt;&lt;p&gt;if the selected value is 2 I have to load B_2 in drpB .&lt;/p&gt;&lt;p&gt;Any Ideas??? Please help&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp;Update:::&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I wrote a little code that gets the value of drpA and select the datasource , but I cannot populate the values I get from the datasource, into the drpB&lt;/p&gt;&lt;p&gt;I was thinking on the lines ;;;&lt;/p&gt;&lt;p&gt;For i = 0 To objdsB_1.length - 1
		&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:drpB&amp;quot;).Add = objdsB_1(i).selectSingleNode(&amp;quot;@data&amp;quot;).text &lt;strong&gt;&amp;#39; This doesnt work!&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;next &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>