<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Reading the selected value of a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/69015.aspx</link><pubDate>Fri, 05 Aug 2011 15:11:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69015</guid><dc:creator>ProgramMax</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69015.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=69015</wfw:commentRss><description>&lt;p&gt;Oh my goodness, I found the mistake. It was something silly.&lt;/p&gt;

&lt;p&gt;&lt;div&gt;My PayrollPeriodsElement path should be .../my:PayrollPeriod  (notice that is singular, not plural).&lt;/div&gt;
&lt;div&gt;The plural .../my:PayrollPeriods holds the actual list itself.&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;Whoops :)&lt;/p&gt;</description></item><item><title>Reading the selected value of a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/69008.aspx</link><pubDate>Fri, 05 Aug 2011 13:56:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69008</guid><dc:creator>ProgramMax</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69008.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=69008</wfw:commentRss><description>&lt;p&gt;I have a browser form (InfoPath 2007 and MOSS2007) that contains a dropdown box. That box is bound to &amp;quot;Look up values in the form&amp;#39;s data source&amp;quot; &amp;quot;/my:myFields/my:PayrollPeriods/my:Period&amp;quot; with value and display name both as &amp;quot;my:Combined&amp;quot;.&lt;/p&gt;

&lt;p&gt;The Combined field is to contain information like &amp;quot;1  -  12/20/2010 - 12/2011&amp;quot;.&lt;/p&gt;

&lt;p&gt;I&amp;#39;m filling this repeating group programmatically.&lt;/p&gt;

&lt;p&gt;I created a Changed event handler for the dropdown box so I can react to the user choosing a new option.
I&amp;#39;m attempting to read the value but am running into a strange problem...I created a multi-line textbox to view what&amp;#39;s happening. Here is the code I have:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;pre&gt;XPathNavigator MainNavigator = MainDataSource.CreateNavigator();
XPathNavigator PayrollPeriodsElement = MainNavigator.SelectSingleNode(&amp;quot;/my:myFields/my:PayrollPeriods&amp;quot;, NamespaceManager); // this is the path to the actual dropdown list element
XPathNavigator TestElement = MainNavigator.SelectSingleNode(&amp;quot;/my:myFields/my:Test&amp;quot;, NamespaceManager); // this is the multi-line textbox

TestElement.SetValue(PayrollPeriodsElement.Value));&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The multi-line textbox is filled with EVERY value in the Payroll Periods dropdown box (appended into one long string). It isn&amp;#39;t just the value that was selected.&lt;/p&gt;

&lt;p&gt;&lt;div&gt;Any thoughts on what I&amp;#39;m doing wrong here?&lt;/div&gt;
&lt;div&gt;Thanks!&lt;/div&gt;&lt;/p&gt;</description></item></channel></rss>