<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I change the ListIndex of one Drop-Down listbox based on selection of another Drop-Down listbox?</title><link>https://www.infopathdev.com:443/forums/thread/30255.aspx</link><pubDate>Wed, 09 Jul 2008 20:15:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30255</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30255</wfw:commentRss><description>&lt;p&gt;Well, what you would be setting is the value of the field bound to the drop down list box, and yes, you can do that in code, but you can also use rules for this. &lt;/p&gt;
&lt;p&gt;For example, on your Stock Number box, you can set a rule that if the field bound to the Stock Number box has a particular value, set the field bound to the Description to a particular value. So, your rule on the Stock Number ddl would have the action of setting a field&amp;#39;s value with the field bound to the Description set to the value of the field bound to the Stock Number. &lt;/p&gt;
&lt;p&gt;For code, you would need to get the node value of the node bound to the Stock Number, then set the value of the node bound to the Description drop down.&lt;/p&gt;
&lt;p&gt;Let me know if you need more detail, okay?&lt;/p&gt;</description></item><item><title>Re: How can I change the ListIndex of one Drop-Down listbox based on selection of another Drop-Down listbox?</title><link>https://www.infopathdev.com:443/forums/thread/30246.aspx</link><pubDate>Wed, 09 Jul 2008 17:18:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30246</guid><dc:creator>Azeem Siddiqui</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30246</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Thanks for reply. &lt;/p&gt;
&lt;p&gt;No I don&amp;#39;t want filter&amp;nbsp;the items in Description drop-down to change depending upon what is selected in Stock Number.&lt;/p&gt;
&lt;p&gt;I have already seen cascading examples but that is not solution for my problem actually I don&amp;#39;t want to filter any data&amp;nbsp;I want to keep my Stock Number and Description list as it is as they loaded first time. Actually following are the items in drop-downs:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Stock Number&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/strong&gt;Description1&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description2&lt;/p&gt;
&lt;p&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Description3&lt;/p&gt;
&lt;p&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Description4&lt;/p&gt;
&lt;p&gt;Now in &amp;#39;Stock Number&amp;#39; drop-down 1,2,3,4&amp;nbsp;items are listed and in &amp;#39;Description&amp;#39; drop-down Description1, Description2, Description3 and Description4 items are listed and now when user select 3 in &amp;#39;Stock Number&amp;#39; drop-down&amp;nbsp;then Description3 should be appeared/selected in &amp;#39;Description&amp;#39; drop-down automatically and vice versa means when user will select Description4 then 4 should be appeared/selected in &amp;#39;Stock Number&amp;#39; drop-down automatically. I can achieve this functionality in Visual Basic very easily by single line of code on Change event of both drop-downs&amp;nbsp;as following.&lt;/p&gt;
&lt;p&gt;Private Sub cboStockNumber_Change()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cboDescription.ListIndex = cboStockNumber.ListIndex&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Sub cboDescription_Change()&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cboStockNumber.ListIndex = cboDescription.ListIndex &lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Do we have access to drop-down control&amp;nbsp;properties via code??&lt;/p&gt;
&lt;p&gt;I think now you will get what I want.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Azeem Siddiqui&lt;/p&gt;</description></item><item><title>Re: How can I change the ListIndex of one Drop-Down listbox based on selection of another Drop-Down listbox?</title><link>https://www.infopathdev.com:443/forums/thread/30217.aspx</link><pubDate>Tue, 08 Jul 2008 20:45:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30217</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30217.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30217</wfw:commentRss><description>&lt;p&gt;Hello, and welcome!&lt;/p&gt;
&lt;p&gt;Do you mean that you would like the items in the Description dropdown to change depending upon what is selected from Stock Number? If so, this tutorial may help you do what you wish: &lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Flat-Data-Source.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Flat-Data-Source.aspx&lt;/a&gt;. Let me know if I misunderstood or if you need more specific assistance.&lt;/p&gt;</description></item><item><title>How can I change the ListIndex of one Drop-Down listbox based on selection of another Drop-Down listbox?</title><link>https://www.infopathdev.com:443/forums/thread/30143.aspx</link><pubDate>Mon, 07 Jul 2008 13:27:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30143</guid><dc:creator>Azeem Siddiqui</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=30143</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to&amp;nbsp;InfoPath 2003 and I&amp;#39;m facing problem. Please can somebody help me&amp;nbsp;that How can I change the ListIndex of one Drop-Down listbox based on selection of another Drop-Down listbox?&lt;/p&gt;
&lt;p&gt;Actually I have two Drop-Down listboxes on my form, one is filled with &amp;#39;Stock Number&amp;#39; and second is filled with &amp;#39;Description&amp;#39; and both are populating from MS Access database. On &amp;#39;Stock Number&amp;#39; selection I want to change the ListIndex of &amp;#39;Description&amp;#39;.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Azeem Siddiqui.&lt;/p&gt;</description></item></channel></rss>