<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/9242.aspx</link><pubDate>Thu, 10 Aug 2006 21:49:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9242</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9242.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9242</wfw:commentRss><description>Ah this is a very common scenario.  To fix this you just need to add a rule on the top dropdown to set the value of the bottom dropdown's node to blank.  Then every time the top dropdown changes the bottom one will be cleared out.  Even in the repeating section using rules should properly maintain context and only clear the dropdown in that item.</description></item><item><title>Re: Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/9241.aspx</link><pubDate>Wed, 22 Mar 2006 15:03:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9241</guid><dc:creator>jmidway22</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9241.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9241</wfw:commentRss><description>I am in a related dilema. I have 2 drop down lists from a sds and when one of the values is chosen a filter is used to determine what is displayed in the other drop down list. This works great... BUT. If you select a item from the top drop down then choose one from the bottom drop down then go back and change the top to another one of its values. The bottom drop down's displayed value stays the same. Other words it doesn't perform the filtering again. If you click on the drop down it will show the proper choices but it doesn't clear the choice that shouldn't be there.&lt;br /&gt;&lt;br /&gt;In addition to this when trying to write a script I ran into the problem that both of these drop down lists are in a repeating section. So if I wanted the script to clear the displayed value in lower drop down box based on the top ones value I can't because from what I understand all the top drop down's variables are the same repeating section making them all referenced by the same variable.&lt;br /&gt;&lt;br /&gt;If anyone has ideas shoot them my way.&lt;br /&gt;Thanks!&lt;br /&gt;josh</description></item><item><title>Re: Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/9240.aspx</link><pubDate>Tue, 07 Mar 2006 06:42:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9240</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9240</wfw:commentRss><description>There is a How-To written by Greg on how to populate dropdown from code&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&lt;/a&gt;</description></item><item><title>Re: Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/9239.aspx</link><pubDate>Tue, 07 Mar 2006 03:33:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9239</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9239</wfw:commentRss><description>Thanks for your advice.  I prefer to add code to remove rows displayed.  I have an idea how to do this, but im seriously lacking vbscript skills to do this bit (remove rows from drop down list).&lt;br /&gt;&lt;br /&gt;Can someone please let me know what the code is to do this.&lt;br /&gt;&lt;br /&gt;Cheers,</description></item><item><title>Re: Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/9238.aspx</link><pubDate>Mon, 06 Mar 2006 04:10:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9238</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9238.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9238</wfw:commentRss><description>You could probably do this easier with data filtering on the drop-down list.&lt;br /&gt;&lt;br /&gt;Either way you will have to populate the drop-down from a secondary data source, once this is done you could add/remove rows with code or use the better option of data filtering on the drop-down control.&lt;br /&gt;&lt;br /&gt;To add data filtering, click the "Filter Data" button when selecting what nodes to populate the drop-down with.&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know if you have any questions.</description></item><item><title>Populating drop down box in code</title><link>https://www.infopathdev.com:443/forums/thread/5421.aspx</link><pubDate>Mon, 06 Mar 2006 02:02:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5421</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5421.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5421</wfw:commentRss><description>I need to populate a drop down list with values I need, depending on a variable value.  For example, if the variable is x, the drop down will only show 1 and 2.  If the variable is y, the drop down will show 2 and 3.&lt;br /&gt;&lt;br /&gt;How to you do call the drop down in vbscript (or jscript)?</description></item></channel></rss>