<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programmatically changing Dropdown values</title><link>https://www.infopathdev.com:443/forums/thread/21855.aspx</link><pubDate>Fri, 20 Jul 2007 21:00:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21855</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21855.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21855</wfw:commentRss><description>That works too! Good job!</description></item><item><title>Re: Programmatically changing Dropdown values</title><link>https://www.infopathdev.com:443/forums/thread/21851.aspx</link><pubDate>Fri, 20 Jul 2007 18:14:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21851</guid><dc:creator>skrile</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21851</wfw:commentRss><description>Thanks for the reply Greg.&amp;nbsp; My problem here is that I have value pairs like (green/1, red/2, blue/3).&amp;nbsp; After messing about with changing these values programmatically - one based on the other - I finally gave up and went a different route.&amp;nbsp; Now, I have radio buttons (there were only three choices anyway) and put labels next to the buttons.&amp;nbsp; The labels are bound to my translation data so it acts like the rest of my solution.</description></item><item><title>Re: Programmatically changing Dropdown values</title><link>https://www.infopathdev.com:443/forums/thread/21825.aspx</link><pubDate>Fri, 20 Jul 2007 00:02:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21825</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21825</wfw:commentRss><description>Make your drop-down be populated from a data source (rather than hard-coded values). Then your code will just remove all the nodes that are used as drop-down values, and replace them with new nodes. It&amp;#39;s just XML DOM manipulation.</description></item><item><title>Programmatically changing Dropdown values</title><link>https://www.infopathdev.com:443/forums/thread/21813.aspx</link><pubDate>Thu, 19 Jul 2007 18:13:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21813</guid><dc:creator>skrile</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=21813</wfw:commentRss><description>&lt;p&gt;Well, in my quest for a fully translated InfoPath form, I&amp;#39;ve come upon another scenario that I need a little guidance with.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a dropdown on my form called &amp;lt;visit_type&amp;gt;.&amp;nbsp; This drop down has Four static values in it (it&amp;#39;s not wired to a database or Sharepoint list).&amp;nbsp; &lt;/p&gt;&lt;p&gt;I have another drop down on my page that gives the user a choice in language (English, French, etc.).&lt;/p&gt;&lt;p&gt;Currently, I have code that when a user chooses a language, several labels on the form have their values updated (if you are interested, you can check the code out &lt;a href="http://www.infopathdev.com/forums/permalink/21731/21747/ShowThread.aspx#21747" title="Loop through language translations" target="_blank"&gt;here&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;So, what I would like to do is add a section to my setTranslations() function that would loop through &amp;lt;visit_type&amp;gt; or if necessary destroy and re-create the drop down with the desired tranlsations (using the tranString() function).&amp;nbsp; Is this possible?&amp;nbsp; If so, how?&lt;/p&gt;</description></item></channel></rss>